|
@@ -91,12 +91,13 @@ qS4 = 7.70381505559019352791e-02;
|
|
} else if (ix<0x3fe00000) {
|
|
} else if (ix<0x3fe00000) {
|
|
if(ix<0x3e400000) {
|
|
if(ix<0x3e400000) {
|
|
if(huge+x>one) return x;
|
|
if(huge+x>one) return x;
|
|
- } else
|
|
+ } else {
|
|
t = x*x;
|
|
t = x*x;
|
|
p = t*(pS0+t*(pS1+t*(pS2+t*(pS3+t*(pS4+t*pS5)))));
|
|
p = t*(pS0+t*(pS1+t*(pS2+t*(pS3+t*(pS4+t*pS5)))));
|
|
q = one+t*(qS1+t*(qS2+t*(qS3+t*qS4)));
|
|
q = one+t*(qS1+t*(qS2+t*(qS3+t*qS4)));
|
|
w = p/q;
|
|
w = p/q;
|
|
return x+x*w;
|
|
return x+x*w;
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
w = one-fabs(x);
|
|
w = one-fabs(x);
|