diff options
author | Ulrich Drepper <drepper@redhat.com> | 2001-04-08 05:16:21 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2001-04-08 05:16:21 +0000 |
commit | 4c4505561671f07c4f1b9e39cc0a0fa271a6c8be (patch) | |
tree | 98ce93a8da88a4ac0be79578424ca9256b1aee12 /sysdeps/ieee754/ldbl-128/e_logl.c | |
parent | 232fdf8cab8d30925b2829446e6033e9c3955956 (diff) | |
download | glibc-4c4505561671f07c4f1b9e39cc0a0fa271a6c8be.tar.gz glibc-4c4505561671f07c4f1b9e39cc0a0fa271a6c8be.tar.xz glibc-4c4505561671f07c4f1b9e39cc0a0fa271a6c8be.zip |
Update.
2001-04-07 Stephen L Moshier <moshier@mediaone.net> * sysdeps/ieee754/ldbl-128/e_logl.c: Correct infinity and NaN return values.
Diffstat (limited to 'sysdeps/ieee754/ldbl-128/e_logl.c')
-rw-r--r-- | sysdeps/ieee754/ldbl-128/e_logl.c | 10 |
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) */ |