diff options
author | Ulrich Drepper <drepper@redhat.com> | 2000-12-05 06:36:53 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2000-12-05 06:36:53 +0000 |
commit | 6d0c49145e818f4f8417b61ddbe22c957825d5e9 (patch) | |
tree | 00927b9a1699f64c19e04832f4219489658b1c40 /sysdeps/i386/fpu/e_scalbl.S | |
parent | 2aa15430850362f50b069e21598e9acc625d4c27 (diff) | |
download | glibc-6d0c49145e818f4f8417b61ddbe22c957825d5e9.zip glibc-6d0c49145e818f4f8417b61ddbe22c957825d5e9.tar.gz glibc-6d0c49145e818f4f8417b61ddbe22c957825d5e9.tar.bz2 |
Update.
* sysdeps/i386/fpu/e_scalb.S: Handle NaN as first parameter correctly.
* sysdeps/i386/fpu/e_scalbf.S: Likewise.
* sysdeps/i386/fpu/e_scalbl.S: Likewise.
* math/w_scalb.c: Don't use matherr except in SVID mode.
* math/w_scalbf.c: Likewise.
* math/w_scalbl.c: Likewise.
* math/test-misc.c: Add test for NaN and scalbl.
Reported by Fred J. Tydeman <tydeman@tybor.com>.
2000-12-04 Ulrich Drepper <drepper@redhat.com>
Diffstat (limited to 'sysdeps/i386/fpu/e_scalbl.S')
-rw-r--r-- | sysdeps/i386/fpu/e_scalbl.S | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sysdeps/i386/fpu/e_scalbl.S b/sysdeps/i386/fpu/e_scalbl.S index 56cc833..e8166fa 100644 --- a/sysdeps/i386/fpu/e_scalbl.S +++ b/sysdeps/i386/fpu/e_scalbl.S @@ -52,7 +52,7 @@ ENTRY(__ieee754_scalbl) fnstsw andl $0x4500, %eax cmpl $0x0100, %eax - je 2f + je 3f fld %st(1) frndint fcomp %st(2) @@ -93,4 +93,8 @@ ENTRY(__ieee754_scalbl) #endif fldl MO(nan) ret + + /* The first parameter is a NaN. Return it. */ +3: fstp %st(1) + ret END(__ieee754_scalbl) |