]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
Cleaner:
authorJim Meyering <jim@meyering.net>
Sat, 10 Dec 2005 22:10:53 +0000 (22:10 +0000)
committerJim Meyering <jim@meyering.net>
Sat, 10 Dec 2005 22:10:53 +0000 (22:10 +0000)
  Make the local an `int' instead.

src/rand-isaac.c

index de90168c4c40476e415c8074ae411c62931a799c..2f8ac86082e06fac7c9f0e890fea34bab8357a46 100644 (file)
@@ -91,7 +91,7 @@ isaac_refill (struct isaac_state *s, uint32_t r[/* s>-words */])
   uint32_t a, b;               /* Caches of a and b */
   uint32_t x, y;               /* Temps needed by isaac_step macro */
   uint32_t *m = s->mm; /* Pointer into state array */
-  uint32_t w = s->words;
+  int w = s->words;
 
   a = s->a;
   b = s->b + (++s->c);
@@ -108,11 +108,10 @@ isaac_refill (struct isaac_state *s, uint32_t r[/* s>-words */])
 
   do
     {
-      int32_t zz = w;
-      isaac_step (s, a << 13, a, b, m, -zz / 2, r);
-      isaac_step (s, a >> 6, a, b, m + 1, -zz / 2, r + 1);
-      isaac_step (s, a << 2, a, b, m + 2, -zz / 2, r + 2);
-      isaac_step (s, a >> 16, a, b, m + 3, -zz / 2, r + 3);
+      isaac_step (s, a << 13, a, b, m, -w / 2, r);
+      isaac_step (s, a >> 6, a, b, m + 1, -w / 2, r + 1);
+      isaac_step (s, a << 2, a, b, m + 2, -w / 2, r + 2);
+      isaac_step (s, a >> 16, a, b, m + 3, -w / 2, r + 3);
       r += 4;
     }
   while ((m += 4) < s->mm + w);