From 0e2bd6fdaca1d9666a3201b7d32019e928e99876 Mon Sep 17 00:00:00 2001 From: Andreas Jaeger Date: Wed, 11 Jul 2001 07:30:36 +0000 Subject: [PATCH] Update. 2001-07-10 Stephen L Moshier * sysdeps/ieee754/ldbl-128/e_acosl.c (__ieee754_acosl): Fix backwards conditional in test for x == 1.0. --- ChangeLog | 5 +++++ sysdeps/ieee754/ldbl-128/e_acosl.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index f1ff26bf95..5d6b64963e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2001-07-10 Stephen L Moshier + + * sysdeps/ieee754/ldbl-128/e_acosl.c (__ieee754_acosl): Fix + backwards conditional in test for x == 1.0. + 2001-07-10 Andreas Jaeger * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Add ulps for tanh diff --git a/sysdeps/ieee754/ldbl-128/e_acosl.c b/sysdeps/ieee754/ldbl-128/e_acosl.c index 745456a3fe..4fae6fcdf3 100644 --- a/sysdeps/ieee754/ldbl-128/e_acosl.c +++ b/sysdeps/ieee754/ldbl-128/e_acosl.c @@ -157,7 +157,7 @@ __ieee754_acosl (x) if (ix == 0x3fff0000 && (u.parts32.w1 | u.parts32.w2 | u.parts32.w3) == 0) { /* |x| == 1 */ - if (sign & 0x80000000) + if ((sign & 0x80000000) == 0) return 0.0; /* acos(1) = 0 */ else return (2.0 * pio2_hi) + (2.0 * pio2_lo); /* acos(-1)= pi */ -- 2.43.5