fix ldexp, frexp, and make math package compile and test correctly

SVN=126423
This commit is contained in:
Rob Pike 2008-07-08 17:26:10 -07:00
parent 4528854308
commit 41b9617be4
9 changed files with 213 additions and 214 deletions

View file

@ -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;