move math routines from package sys to package math,

though they still build in src/runtime.

use cgo instead of hand-written wrappers.

R=r
DELTA=740  (289 added, 300 deleted, 151 changed)
OCL=23326
CL=23331
This commit is contained in:
Russ Cox 2009-01-22 16:23:44 -08:00
parent 8c5bc7e93a
commit 1f8a40d85c
28 changed files with 434 additions and 435 deletions

View file

@ -29,9 +29,9 @@ func sinus(arg float64, quad int) float64 {
var y float64;
if x > 32764 {
var e float64;
e, y = sys.Modf(x);
e, y = Modf(x);
e = e + float64(quad);
temp1, f := sys.Modf(0.25*e);
temp1, f := Modf(0.25*e);
quad = int(e - 4*f);
} else {
k := int32(x);