diff options
Diffstat (limited to 'lib/libm/src/e_hypotf.c')
| -rw-r--r-- | lib/libm/src/e_hypotf.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/libm/src/e_hypotf.c b/lib/libm/src/e_hypotf.c index 6657493da23..db781f5dfdc 100644 --- a/lib/libm/src/e_hypotf.c +++ b/lib/libm/src/e_hypotf.c @@ -23,7 +23,7 @@ static char rcsid[] = "$NetBSD: e_hypotf.c,v 1.5 1995/05/12 04:57:30 jtc Exp $"; float __ieee754_hypotf(float x, float y) { - float a=x,b=y,t1,t2,y1,y2,w; + float a=x,b=y,t1,t2,yy1,y2,w; int32_t j,k,ha,hb; GET_FLOAT_WORD(ha,x); @@ -70,11 +70,11 @@ __ieee754_hypotf(float x, float y) w = __ieee754_sqrtf(t1*t1-(b*(-b)-t2*(a+t1))); } else { a = a+a; - SET_FLOAT_WORD(y1,hb&0xfffff000); - y2 = b - y1; + SET_FLOAT_WORD(yy1,hb&0xfffff000); + y2 = b - yy1; SET_FLOAT_WORD(t1,ha+0x00800000); t2 = a - t1; - w = __ieee754_sqrtf(t1*y1-(w*(-w)-(t1*y2+t2*b))); + w = __ieee754_sqrtf(t1*yy1-(w*(-w)-(t1*y2+t2*b))); } if(k!=0) { SET_FLOAT_WORD(t1,0x3f800000+(k<<23)); |
