about summary refs log tree commit diff
path: root/sysdeps/ieee754/ldbl-128/e_logl.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/ieee754/ldbl-128/e_logl.c')
-rw-r--r--sysdeps/ieee754/ldbl-128/e_logl.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sysdeps/ieee754/ldbl-128/e_logl.c b/sysdeps/ieee754/ldbl-128/e_logl.c
index a17c745413..3bfe3c2d54 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) */