(__ieee754_hypotf): Add missing exponent bias to the value for 2^126.
authordrepper <drepper>
Tue, 30 Aug 2005 22:47:14 +0000 (22:47 +0000)
committerdrepper <drepper>
Tue, 30 Aug 2005 22:47:14 +0000 (22:47 +0000)
[!__STDC__]: Fix function name.

sysdeps/ieee754/flt-32/e_hypotf.c

index d6b1520..ddcd8ee 100644 (file)
@@ -23,7 +23,7 @@ static char rcsid[] = "$NetBSD: e_hypotf.c,v 1.5 1995/05/12 04:57:30 jtc Exp $";
 #ifdef __STDC__
        float __ieee754_hypotf(float x, float y)
 #else
-       float __ieee754_hypot(x,y)
+       float __ieee754_hypotf(x,y)
        float x, y;
 #endif
 {
@@ -54,7 +54,7 @@ static char rcsid[] = "$NetBSD: e_hypotf.c,v 1.5 1995/05/12 04:57:30 jtc Exp $";
        if(hb < 0x26800000) {   /* b < 2**-50 */
            if(hb <= 0x007fffff) {      /* subnormal b or 0 */
                if(hb==0) return a;
-               SET_FLOAT_WORD(t1,0x3f000000);  /* t1=2^126 */
+               SET_FLOAT_WORD(t1,0x7e800000);  /* t1=2^126 */
                b *= t1;
                a *= t1;
                k -= 126;