diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2014-12-17 19:59:13 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2014-12-17 19:59:13 -0800 |
commit | 293366c3410893f6937b507e2ca1f7ab192f1ad2 (patch) | |
tree | 93be5f4c16f0150bfcdacf469c6b5bb3d02af319 | |
parent | 0cc11cca918820e2e54b9b13497e54536fd4a6e5 (diff) | |
download | txr-293366c3410893f6937b507e2ca1f7ab192f1ad2.tar.gz txr-293366c3410893f6937b507e2ca1f7ab192f1ad2.tar.bz2 txr-293366c3410893f6937b507e2ca1f7ab192f1ad2.zip |
* rand.c (struct rand_state): Change cur member to unsigned.
This generates better code for rand32.
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | rand.c | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -1,3 +1,8 @@ +2014-12-17 Kaz Kylheku <kaz@kylheku.com> + + * rand.c (struct rand_state): Change cur member to unsigned. + This generates better code for rand32. + 2014-12-16 Kaz Kylheku <kaz@kylheku.com> * rand.c (rstate): New inline function. @@ -59,7 +59,7 @@ typedef unsigned long rand32_t; */ struct rand_state { rand32_t state[16]; - int cur; + unsigned cur; }; val random_state_s; |