diff options
-rw-r--r-- | lib/msun/src/e_asin.c | 12 | ||||
-rw-r--r-- | lib/msun/src/e_asinl.c | 12 |
2 files changed, 12 insertions, 12 deletions
diff --git a/lib/msun/src/e_asin.c b/lib/msun/src/e_asin.c index 4458604..b2cec0e 100644 --- a/lib/msun/src/e_asin.c +++ b/lib/msun/src/e_asin.c @@ -84,12 +84,12 @@ __ieee754_asin(double x) } else if (ix<0x3fe00000) { /* |x|<0.5 */ if(ix<0x3e400000) { /* if |x| < 2**-27 */ if(huge+x>one) return x;/* return x with inexact if x!=0*/ - } else - t = x*x; - p = t*(pS0+t*(pS1+t*(pS2+t*(pS3+t*(pS4+t*pS5))))); - q = one+t*(qS1+t*(qS2+t*(qS3+t*qS4))); - w = p/q; - return x+x*w; + } + t = x*x; + p = t*(pS0+t*(pS1+t*(pS2+t*(pS3+t*(pS4+t*pS5))))); + q = one+t*(qS1+t*(qS2+t*(qS3+t*qS4))); + w = p/q; + return x+x*w; } /* 1> |x|>= 0.5 */ w = one-fabs(x); diff --git a/lib/msun/src/e_asinl.c b/lib/msun/src/e_asinl.c index ee7f5af..a85765f 100644 --- a/lib/msun/src/e_asinl.c +++ b/lib/msun/src/e_asinl.c @@ -47,12 +47,12 @@ asinl(long double x) } else if (expt<BIAS-1) { /* |x|<0.5 */ if(expt<ASIN_LINEAR) { /* if |x| is small, asinl(x)=x */ if(huge+x>one) return x;/* return x with inexact if x!=0*/ - } else - t = x*x; - p = P(t); - q = Q(t); - w = p/q; - return x+x*w; + } + t = x*x; + p = P(t); + q = Q(t); + w = p/q; + return x+x*w; } /* 1> |x|>= 0.5 */ w = one-fabsl(x); |