Update.
authorUlrich Drepper <drepper@redhat.com>
Sat, 15 Feb 2003 05:25:17 +0000 (05:25 +0000)
committerUlrich Drepper <drepper@redhat.com>
Sat, 15 Feb 2003 05:25:17 +0000 (05:25 +0000)
* sysdeps/i386/fpu/s_nextafterl.c: Decrement high word of mantissa
of demorm correctly if low word is zero.
Reported by Fred J. Tydeman <tydeman@tybor.com>.

ChangeLog
sysdeps/i386/fpu/s_nextafterl.c

index 78ca01e..8a8781a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2003-02-14  Ulrich Drepper  <drepper@redhat.com>
 
+       * sysdeps/i386/fpu/s_nextafterl.c: Decrement high word of mantissa
+       of demorm correctly if low word is zero.
+       Reported by Fred J. Tydeman <tydeman@tybor.com>.
+
        * sysdeps/generic/libc-start.c [HAVE_PTR_NTHREADS]: Decrement thread
        counter and only call __exit_thread if this is not the last thread.
 
index eaf3b0b..5b617cb 100644 (file)
@@ -61,9 +61,9 @@ static char rcsid[] = "$NetBSD: $";
              /* x > y, x -= ulp */
                if(lx==0) {
                    if (hx <= 0x80000000) {
-                     if (esx == 0)
-                       hx = 0;
-                     else {
+                     if (esx == 0) {
+                       --hx;
+                     else {
                        esx -= 1;
                        hx = hx - 1;
                        if (esx > 0)