summaryrefslogtreecommitdiffstats
path: root/lib/libm/src/e_pow.c
diff options
context:
space:
mode:
authorotto <otto@openbsd.org>2006-04-25 18:15:36 +0000
committerotto <otto@openbsd.org>2006-04-25 18:15:36 +0000
commit55fa043fb614f21583674600aad40928e3543fb2 (patch)
tree925be78444cffad62b1e9f40ecea2984bbe18734 /lib/libm/src/e_pow.c
parentenable udcf, why not (diff)
downloadwireguard-openbsd-55fa043fb614f21583674600aad40928e3543fb2.tar.xz
wireguard-openbsd-55fa043fb614f21583674600aad40928e3543fb2.zip
Avoid shadowing of external symbols by local variables; whoever
thought up the names of the bessel functions deserves a beating. ok deraadt@
Diffstat (limited to 'lib/libm/src/e_pow.c')
-rw-r--r--lib/libm/src/e_pow.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/libm/src/e_pow.c b/lib/libm/src/e_pow.c
index 916b4c20be8..9ee8279ea3a 100644
--- a/lib/libm/src/e_pow.c
+++ b/lib/libm/src/e_pow.c
@@ -99,7 +99,7 @@ double
__ieee754_pow(double x, double y)
{
double z,ax,z_h,z_l,p_h,p_l;
- double y1,t1,t2,r,s,t,u,v,w;
+ double yy1,t1,t2,r,s,t,u,v,w;
int32_t i,j,k,yisint,n;
int32_t hx,hy,ix,iy;
u_int32_t lx,ly;
@@ -247,11 +247,11 @@ __ieee754_pow(double x, double y)
if(((((u_int32_t)hx>>31)-1)|(yisint-1))==0)
s = -one;/* (-ve)**(odd int) */
- /* split up y into y1+y2 and compute (y1+y2)*(t1+t2) */
- y1 = y;
- SET_LOW_WORD(y1,0);
- p_l = (y-y1)*t1+y*t2;
- p_h = y1*t1;
+ /* split up y into yy1+y2 and compute (yy1+y2)*(t1+t2) */
+ yy1 = y;
+ SET_LOW_WORD(yy1,0);
+ p_l = (y-yy1)*t1+y*t2;
+ p_h = yy1*t1;
z = p_l+p_h;
EXTRACT_WORDS(j,i,z);
if (j>=0x40900000) { /* z >= 1024 */