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

@ -49,5 +49,5 @@ exp(arg double) double
xsq = fract*fract;
temp1 = ((p2*xsq+p1)*xsq+p0)*fract;
temp2 = ((xsq+q2)*xsq+q1)*xsq + q0;
return sys.ldexp(ent, sqrt2*(temp2+temp1)/(temp2-temp1));
return sys.ldexp(sqrt2*(temp2+temp1)/(temp2-temp1), ent);
}