about summary refs log tree commit diff
path: root/sysdeps/libm-ieee754/s_lrintf.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/libm-ieee754/s_lrintf.c')
-rw-r--r--sysdeps/libm-ieee754/s_lrintf.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/sysdeps/libm-ieee754/s_lrintf.c b/sysdeps/libm-ieee754/s_lrintf.c
index d80d81a718..210ffec501 100644
--- a/sysdeps/libm-ieee754/s_lrintf.c
+++ b/sysdeps/libm-ieee754/s_lrintf.c
@@ -34,17 +34,17 @@ long int
 __lrintf (float x)
 {
   int32_t j0;
-  u_int32_t i, i0;
+  u_int32_t i0;
   volatile float w;
   float t;
   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 int) * 8) - 1)
@@ -57,10 +57,10 @@ __lrintf (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);
 	}