mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
fix ldexp, frexp, and make math package compile and test correctly
SVN=126423
This commit is contained in:
parent
4528854308
commit
41b9617be4
9 changed files with 213 additions and 214 deletions
|
|
@ -39,7 +39,7 @@ log(arg double) double
|
|||
return sys.NaN();
|
||||
}
|
||||
|
||||
exp,x = sys.frexp(arg);
|
||||
x,exp = sys.frexp(arg);
|
||||
for x < 0.5 {
|
||||
x = x*2;
|
||||
exp = exp-1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue