From 4c4505561671f07c4f1b9e39cc0a0fa271a6c8be Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Sun, 8 Apr 2001 05:16:21 +0000 Subject: Update. 2001-04-07 Stephen L Moshier * sysdeps/ieee754/ldbl-128/e_logl.c: Correct infinity and NaN return values. --- sysdeps/ieee754/ldbl-128/e_logl.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'sysdeps/ieee754/ldbl-128') diff --git a/sysdeps/ieee754/ldbl-128/e_logl.c b/sysdeps/ieee754/ldbl-128/e_logl.c index a17c745..3bfe3c2 100644 --- a/sysdeps/ieee754/ldbl-128/e_logl.c +++ b/sysdeps/ieee754/ldbl-128/e_logl.c @@ -184,16 +184,16 @@ __ieee754_logl(long double x) /* log(0) = -infinity. */ if ((k | u.parts32.w1 | u.parts32.w2 | u.parts32.w3) == 0) { - u.parts32.w0 = 0xffff; + u.parts32.w0 = 0xffff0000; return u.value; } /* log ( x < 0 ) = NaN */ if (m & 0x80000000) { - u.parts32.w0 = 0x7fff; - u.parts32.w1 = 0xffff; - u.parts32.w2 = 0xffff; - u.parts32.w3 = 0xffff; + u.parts32.w0 = 0x7fffffff; + u.parts32.w1 = 0xffffffff; + u.parts32.w2 = 0xffffffff; + u.parts32.w3 = 0xffffffff; return u.value; } /* log (infinity or NaN) */ -- cgit v1.1