aboutsummaryrefslogtreecommitdiff
path: root/newlib/libm/math
diff options
context:
space:
mode:
authorJeff Johnston <jjohnstn@redhat.com>2005-08-02 19:44:44 +0000
committerJeff Johnston <jjohnstn@redhat.com>2005-08-02 19:44:44 +0000
commit0c5c6c234f474702ac9fa7681ceb6d18bf3a43de (patch)
treee1d3e002808a796cbf27e2929cf6d456cacb34c4 /newlib/libm/math
parent3d8098c0f3f8db67079f8b39bcab8c025c49442f (diff)
downloadnewlib-0c5c6c234f474702ac9fa7681ceb6d18bf3a43de.zip
newlib-0c5c6c234f474702ac9fa7681ceb6d18bf3a43de.tar.gz
newlib-0c5c6c234f474702ac9fa7681ceb6d18bf3a43de.tar.bz2
2005-08-02 Bob Wilson <bob.wilson@acm.org>
* libm/math/ef_hypot.c (__ieee754_hypotf): Add missing exponent bias to the value for 2^126.
Diffstat (limited to 'newlib/libm/math')
-rw-r--r--newlib/libm/math/ef_hypot.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/newlib/libm/math/ef_hypot.c b/newlib/libm/math/ef_hypot.c
index b78b968..9368eb4 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;