diff options
author | 2006-04-25 18:15:36 +0000 | |
---|---|---|
committer | 2006-04-25 18:15:36 +0000 | |
commit | 55fa043fb614f21583674600aad40928e3543fb2 (patch) | |
tree | 925be78444cffad62b1e9f40ecea2984bbe18734 /lib/libm/src/s_rintf.c | |
parent | enable udcf, why not (diff) | |
download | wireguard-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/s_rintf.c')
-rw-r--r-- | lib/libm/src/s_rintf.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/libm/src/s_rintf.c b/lib/libm/src/s_rintf.c index c04ce2dcf95..c4d1ebf9ae1 100644 --- a/lib/libm/src/s_rintf.c +++ b/lib/libm/src/s_rintf.c @@ -29,14 +29,14 @@ TWO23[2]={ float rintf(float x) { - int32_t i0,j0,sx; + int32_t i0,jj0,sx; u_int32_t i,i1; float w,t; GET_FLOAT_WORD(i0,x); sx = (i0>>31)&1; - j0 = ((i0>>23)&0xff)-0x7f; - if(j0<23) { - if(j0<0) { + jj0 = ((i0>>23)&0xff)-0x7f; + if(jj0<23) { + if(jj0<0) { if((i0&0x7fffffff)==0) return x; i1 = (i0&0x07fffff); i0 &= 0xfff00000; @@ -48,13 +48,13 @@ rintf(float x) SET_FLOAT_WORD(t,(i0&0x7fffffff)|(sx<<31)); return t; } else { - i = (0x007fffff)>>j0; + i = (0x007fffff)>>jj0; if((i0&i)==0) return x; /* x is integral */ i>>=1; - if((i0&i)!=0) i0 = (i0&(~i))|((0x100000)>>j0); + if((i0&i)!=0) i0 = (i0&(~i))|((0x100000)>>jj0); } } else { - if(j0==0x80) return x+x; /* inf or NaN */ + if(jj0==0x80) return x+x; /* inf or NaN */ else return x; /* x is integral */ } SET_FLOAT_WORD(x,i0); |