From: Ulrich Drepper Date: Sun, 3 Dec 2000 23:35:00 +0000 (+0000) Subject: Update. X-Git-Tag: cvs/glibc-2_2_1~238 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=be2925fc8afd9170d76237ac0fcf2df5db89532b;p=thirdparty%2Fglibc.git Update. * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf): Correct test for subnormal. Reported by Fred J. Tydeman . --- diff --git a/ChangeLog b/ChangeLog index ed1ddafee79..378b0154f18 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2000-12-03 Ulrich Drepper + * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf): Correct + test for subnormal. + Reported by Fred J. Tydeman . + * math/test-misc.c (main): Add tests for frexp. Reported by Fred J. Tydeman . * sysdeps/i386/fpu/s_frexpl.S: Don't overflow during the computation. diff --git a/sysdeps/ieee754/flt-32/s_fpclassifyf.c b/sysdeps/ieee754/flt-32/s_fpclassifyf.c index a6b35cfe1ba..c0d3a0b6205 100644 --- a/sysdeps/ieee754/flt-32/s_fpclassifyf.c +++ b/sysdeps/ieee754/flt-32/s_fpclassifyf.c @@ -1,5 +1,5 @@ /* 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. Contributed by Ulrich Drepper , 1997. @@ -33,7 +33,7 @@ __fpclassifyf (float x) wx &= 0x7fffffff; if (wx == 0) retval = FP_ZERO; - else if (wx < 0x1000000) + else if (wx < 0x800000) retval = FP_SUBNORMAL; else if (wx >= 0x7f800000) retval = wx > 0x7f800000 ? FP_NAN : FP_INFINITE;