summaryrefslogtreecommitdiff
path: root/sysdeps/libm-ieee754/s_llrintf.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/libm-ieee754/s_llrintf.c')
-rw-r--r--sysdeps/libm-ieee754/s_llrintf.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/sysdeps/libm-ieee754/s_llrintf.c b/sysdeps/libm-ieee754/s_llrintf.c
index 83cb7fdd37..a812377d19 100644
--- a/sysdeps/libm-ieee754/s_llrintf.c
+++ b/sysdeps/libm-ieee754/s_llrintf.c
@@ -34,17 +34,17 @@ long long int
__llrintf (float x)
{
int32_t j0;
- u_int32_t i, i0;
+ u_int32_t i0;
volatile float w;
float t;
long long int result;
int sx;
- GET_FLOAT_WORD (i, x);
+ GET_FLOAT_WORD (i0, x);
sx = i0 >> 31;
j0 = ((i0 >> 23) & 0xff) - 0x7f;
- i0 = i & 0x7fffff;
+ i0 &= 0x7fffff;
i0 |= 0x800000;
if (j0 < (int32_t) (sizeof (long long int) * 8) - 1)
@@ -57,10 +57,10 @@ __llrintf (float x)
{
w = two23[sx] + x;
t = w - two23[sx];
- GET_FLOAT_WORD (i, t);
- i0 = i & 0x7fffff;
- i0 |= 0x800000;
+ GET_FLOAT_WORD (i0, t);
j0 = ((i0 >> 23) & 0xff) - 0x7f;
+ i0 &= 0x7fffff;
+ i0 |= 0x800000;
result = i0 >> (23 - j0);
}