mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-31 15:01:09 +00:00
Update.
* sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf): Correct test for subnormal. Reported by Fred J. Tydeman <tydeman@tybor.com>.
This commit is contained in:
parent
79569444ef
commit
be2925fc8a
@ -1,5 +1,9 @@
|
|||||||
2000-12-03 Ulrich Drepper <drepper@redhat.com>
|
2000-12-03 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
|
* sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf): Correct
|
||||||
|
test for subnormal.
|
||||||
|
Reported by Fred J. Tydeman <tydeman@tybor.com>.
|
||||||
|
|
||||||
* math/test-misc.c (main): Add tests for frexp.
|
* math/test-misc.c (main): Add tests for frexp.
|
||||||
Reported by Fred J. Tydeman <tydeman@tybor.com>.
|
Reported by Fred J. Tydeman <tydeman@tybor.com>.
|
||||||
* sysdeps/i386/fpu/s_frexpl.S: Don't overflow during the computation.
|
* sysdeps/i386/fpu/s_frexpl.S: Don't overflow during the computation.
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/* Return classification value corresponding to argument.
|
/* Return classification value corresponding to argument.
|
||||||
Copyright (C) 1997 Free Software Foundation, Inc.
|
Copyright (C) 1997, 2000 Free Software Foundation, Inc.
|
||||||
This file is part of the GNU C Library.
|
This file is part of the GNU C Library.
|
||||||
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1997.
|
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1997.
|
||||||
|
|
||||||
@ -33,7 +33,7 @@ __fpclassifyf (float x)
|
|||||||
wx &= 0x7fffffff;
|
wx &= 0x7fffffff;
|
||||||
if (wx == 0)
|
if (wx == 0)
|
||||||
retval = FP_ZERO;
|
retval = FP_ZERO;
|
||||||
else if (wx < 0x1000000)
|
else if (wx < 0x800000)
|
||||||
retval = FP_SUBNORMAL;
|
retval = FP_SUBNORMAL;
|
||||||
else if (wx >= 0x7f800000)
|
else if (wx >= 0x7f800000)
|
||||||
retval = wx > 0x7f800000 ? FP_NAN : FP_INFINITE;
|
retval = wx > 0x7f800000 ? FP_NAN : FP_INFINITE;
|
||||||
|
Loading…
Reference in New Issue
Block a user