diff options
author | bde <bde@FreeBSD.org> | 1997-03-09 16:29:29 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1997-03-09 16:29:29 +0000 |
commit | 6dc700613a5a26417b3b8a3b958664e44dd507fe (patch) | |
tree | 328c568ab800325731d7e389e35755b4bacbbfd2 /lib/msun/src/e_asinf.c | |
parent | 154b7d3e6c9eb840b8244cd54446d8bab6e56de1 (diff) | |
download | FreeBSD-src-6dc700613a5a26417b3b8a3b958664e44dd507fe.zip FreeBSD-src-6dc700613a5a26417b3b8a3b958664e44dd507fe.tar.gz |
Use __ieee754_sqrt() instead of sqrt() internally. Similarly for the
float versions. Using sqrt() was inefficient.
Obtained from: NetBSD
Diffstat (limited to 'lib/msun/src/e_asinf.c')
-rw-r--r-- | lib/msun/src/e_asinf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/msun/src/e_asinf.c b/lib/msun/src/e_asinf.c index d613a10..593f2e5 100644 --- a/lib/msun/src/e_asinf.c +++ b/lib/msun/src/e_asinf.c @@ -14,7 +14,7 @@ */ #ifndef lint -static char rcsid[] = "$Id$"; +static char rcsid[] = "$Id: e_asinf.c,v 1.5 1997/02/22 15:09:58 peter Exp $"; #endif #include "math.h" @@ -73,7 +73,7 @@ qS4 = 7.7038154006e-02; /* 0x3d9dc62e */ t = w*(float)0.5; p = t*(pS0+t*(pS1+t*(pS2+t*(pS3+t*(pS4+t*pS5))))); q = one+t*(qS1+t*(qS2+t*(qS3+t*qS4))); - s = sqrtf(t); + s = __ieee754_sqrtf(t); if(ix>=0x3F79999A) { /* if |x| > 0.975 */ w = p/q; t = pio2_hi-((float)2.0*(s+s*w)-pio2_lo); |