diff options
author | Ulrich Drepper <drepper@redhat.com> | 2000-12-19 05:07:31 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2000-12-19 05:07:31 +0000 |
commit | cc46d0cfcf056cd46a99b6c9051291da31764c58 (patch) | |
tree | 924077ae6d01b45c0b8363d666e806268cf7d382 /sysdeps/i386/fpu/s_nextafterl.c | |
parent | aa9e3c3940003135ee8d3b2e728b627930eb65b1 (diff) | |
download | glibc-cc46d0cfcf056cd46a99b6c9051291da31764c58.tar.gz glibc-cc46d0cfcf056cd46a99b6c9051291da31764c58.tar.xz glibc-cc46d0cfcf056cd46a99b6c9051291da31764c58.zip |
Update.
* math/test-misc.c: Add more tests for nextafter. * sysdeps/i386/fpu/s_nextafterl.c: Handle decrement for x<0 correctly. * sysdeps/ieee754/ldbl-96/math_ldbl.h (ieee_long_double_shape_type): Make sign_exponent element signed.
Diffstat (limited to 'sysdeps/i386/fpu/s_nextafterl.c')
-rw-r--r-- | sysdeps/i386/fpu/s_nextafterl.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sysdeps/i386/fpu/s_nextafterl.c b/sysdeps/i386/fpu/s_nextafterl.c index a905858e76..2943a613e3 100644 --- a/sysdeps/i386/fpu/s_nextafterl.c +++ b/sysdeps/i386/fpu/s_nextafterl.c @@ -36,8 +36,9 @@ static char rcsid[] = "$NetBSD: $"; long double x,y; #endif { - int32_t hx,hy,ix,iy; - u_int32_t lx,ly,esx,esy; + u_int32_t hx,hy,ix,iy; + u_int32_t lx,ly; + int32_t esx,esy; GET_LDOUBLE_WORDS(esx,hx,lx,x); GET_LDOUBLE_WORDS(esy,hy,ly,y); @@ -90,7 +91,7 @@ static char rcsid[] = "$NetBSD: $"; else { esx -= 1; hx = hx - 1; - if (esx > 0) + if ((esx&0x7fff) > 0) hx |= 0x80000000; } } else |