summaryrefslogtreecommitdiff
path: root/src/rand-isaac.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2005-12-10 22:10:53 +0000
committerJim Meyering <jim@meyering.net>2005-12-10 22:10:53 +0000
commitd5978ad1908ed099b835d35e05e85b586c153ddd (patch)
tree04017257a2b56e68ecf5a5dac0555e51fb76a4b8 /src/rand-isaac.c
parent437a569c53f9f9bc9ee95a0aae2fc56e03620c3b (diff)
downloadcoreutils-d5978ad1908ed099b835d35e05e85b586c153ddd.tar.xz
Cleaner:
Make the local an `int' instead.
Diffstat (limited to 'src/rand-isaac.c')
-rw-r--r--src/rand-isaac.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/rand-isaac.c b/src/rand-isaac.c
index de90168c4..2f8ac8608 100644
--- a/src/rand-isaac.c
+++ b/src/rand-isaac.c
@@ -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);