projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ensure that thread dtv pointer is never null to optimize __tls_get_addr
[musl]
/
src
/
math
/
acosl.c
diff --git
a/src/math/acosl.c
b/src/math/acosl.c
index
9e9b01e
..
9e7b7fb
100644
(file)
--- a/
src/math/acosl.c
+++ b/
src/math/acosl.c
@@
-38,14
+38,14
@@
long double acosl(long double x)
((u.bits.manh & ~LDBL_NBIT) | u.bits.manl) == 0) {
if (expsign > 0)
return 0; /* acos(1) = 0 */
((u.bits.manh & ~LDBL_NBIT) | u.bits.manl) == 0) {
if (expsign > 0)
return 0; /* acos(1) = 0 */
- return 2*pio2_hi + 0x1p-1
000
; /* acos(-1)= pi */
+ return 2*pio2_hi + 0x1p-1
20f
; /* acos(-1)= pi */
}
return 0/(x-x); /* acos(|x|>1) is NaN */
}
/* |x| < 0.5 */
if (expt < 0x3fff - 1) {
if (expt < 0x3fff - 65)
}
return 0/(x-x); /* acos(|x|>1) is NaN */
}
/* |x| < 0.5 */
if (expt < 0x3fff - 1) {
if (expt < 0x3fff - 65)
- return pio2_hi + 0x1p-1
000
; /* x < 0x1p-65: acosl(x)=pi/2 */
+ return pio2_hi + 0x1p-1
20f
; /* x < 0x1p-65: acosl(x)=pi/2 */
return pio2_hi - (x - (pio2_lo - x * __invtrigl_R(x*x)));
}
/* x < -0.5 */
return pio2_hi - (x - (pio2_lo - x * __invtrigl_R(x*x)));
}
/* x < -0.5 */