mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
adapt to new compiler types
R=r OCL=18024 CL=18024
This commit is contained in:
parent
c21d9a1ec9
commit
bc67ea4f8f
7 changed files with 32 additions and 31 deletions
|
|
@ -22,7 +22,7 @@ func
|
|||
sinus(arg float64, quad int) float64
|
||||
{
|
||||
var e, f, ysq, x, y, temp1, temp2 float64;
|
||||
var k long;
|
||||
var k int32;
|
||||
|
||||
x = arg;
|
||||
if(x < 0) {
|
||||
|
|
@ -36,7 +36,7 @@ sinus(arg float64, quad int) float64
|
|||
temp1,f = sys.modf(0.25*e);
|
||||
quad = int(e - 4*f);
|
||||
} else {
|
||||
k = long(x);
|
||||
k = int32(x);
|
||||
y = x - float64(k);
|
||||
quad = (quad + int(k)) & 3;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue