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_acosh.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_acosh.c')
-rw-r--r-- | lib/msun/src/e_acosh.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/msun/src/e_acosh.c b/lib/msun/src/e_acosh.c index adaf75d..a471769 100644 --- a/lib/msun/src/e_acosh.c +++ b/lib/msun/src/e_acosh.c @@ -11,7 +11,7 @@ */ #ifndef lint -static char rcsid[] = "$Id$"; +static char rcsid[] = "$Id: e_acosh.c,v 1.4 1997/02/22 15:09:56 peter Exp $"; #endif /* __ieee754_acosh(x) @@ -61,9 +61,9 @@ ln2 = 6.93147180559945286227e-01; /* 0x3FE62E42, 0xFEFA39EF */ return 0.0; /* acosh(1) = 0 */ } else if (hx > 0x40000000) { /* 2**28 > x > 2 */ t=x*x; - return __ieee754_log(2.0*x-one/(x+sqrt(t-one))); + return __ieee754_log(2.0*x-one/(x+__ieee754_sqrt(t-one))); } else { /* 1<x<2 */ t = x-one; - return log1p(t+sqrt(2.0*t+t*t)); + return log1p(t+__ieee754_sqrt(2.0*t+t*t)); } } |