mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
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:
parent
8c5bc7e93a
commit
1f8a40d85c
28 changed files with 434 additions and 435 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue