From 0c5c6c234f474702ac9fa7681ceb6d18bf3a43de Mon Sep 17 00:00:00 2001 From: Jeff Johnston Date: Tue, 2 Aug 2005 19:44:44 +0000 Subject: 2005-08-02 Bob Wilson * libm/math/ef_hypot.c (__ieee754_hypotf): Add missing exponent bias to the value for 2^126. --- newlib/ChangeLog | 5 +++++ newlib/libm/math/ef_hypot.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) (limited to 'newlib') diff --git a/newlib/ChangeLog b/newlib/ChangeLog index 719990c2d..6ba301f1a 100644 --- a/newlib/ChangeLog +++ b/newlib/ChangeLog @@ -1,3 +1,8 @@ +2005-08-02 Bob Wilson + + * libm/math/ef_hypot.c (__ieee754_hypotf): Add missing exponent bias + to the value for 2^126. + 2005-07-26 Hans-Peter Nilsson * libc/machine/cris/libcdtor.c (defaultors): Mark artificially as diff --git a/newlib/libm/math/ef_hypot.c b/newlib/libm/math/ef_hypot.c index b78b968ef..9368eb41c 100644 --- a/newlib/libm/math/ef_hypot.c +++ b/newlib/libm/math/ef_hypot.c @@ -50,7 +50,7 @@ if(FLT_UWORD_IS_ZERO(hb)) { return a; } else if(FLT_UWORD_IS_SUBNORMAL(hb)) { - SET_FLOAT_WORD(t1,0x3f000000L); /* t1=2^126 */ + SET_FLOAT_WORD(t1,0x7e800000L); /* t1=2^126 */ b *= t1; a *= t1; k -= 126; -- cgit v1.2.3