1
0
mirror of https://github.com/cc65/cc65.git synced 2025-08-07 15:25:31 +00:00
Files
cc65/test/val
Brad Smith 041f981960 rand() use XOR to break up unwanted pair correlation (#1107)
* rand() use XOR to break up unwanted pair correlation

This form of rand() cannot return the same value twice in a row.
Two additonal EOR instructions produce a more even distribution of successive pairs.
see comments on #951

* rand.s document purpose of XOR

* suggested srand() optimization: zero fill unnecessary

* test to validate implementation of rand()

* srand() improving behaviour and adding startup test

* srand() with a tail call to rand() for better initial shuffle

* srand() can fall through to rand() instead of tail call
2020-07-21 23:38:18 +02:00
..
2020-07-12 23:11:43 +02:00
2017-03-21 22:35:25 +01:00
2018-10-16 09:45:30 +02:00
2019-04-25 15:19:53 +02:00
2020-07-21 19:24:39 +02:00
2020-07-09 15:57:51 +02:00
2020-07-12 23:11:43 +02:00
2020-07-12 23:11:43 +02:00
2020-07-12 23:11:43 +02:00
2020-07-12 23:11:43 +02:00
2019-02-12 22:50:49 +01:00
2019-02-12 22:50:49 +01:00
2019-02-12 22:50:49 +01:00
2019-02-12 22:50:49 +01:00
2019-02-12 22:50:49 +01:00
2019-02-12 22:50:49 +01:00
2019-02-12 22:50:49 +01:00
2019-02-12 22:50:49 +01:00
2019-02-12 22:50:49 +01:00
2019-02-12 22:50:49 +01:00
2019-02-12 22:50:49 +01:00
2019-02-12 22:50:49 +01:00
2019-02-12 22:50:49 +01:00
2019-02-12 22:50:49 +01:00
2019-02-12 22:50:49 +01:00
2019-02-12 22:50:49 +01:00
2019-02-12 22:50:49 +01:00
2019-02-12 22:50:49 +01:00
2019-02-12 22:50:49 +01:00
2019-02-12 22:50:49 +01:00
2019-02-12 22:50:49 +01:00
2019-02-12 22:50:49 +01:00
2019-02-12 22:50:49 +01:00
2020-07-09 16:05:57 +02:00
2020-07-09 16:05:57 +02:00
2020-07-09 16:05:57 +02:00
2020-07-09 16:05:57 +02:00
2020-07-21 19:24:39 +02:00
2017-04-04 15:45:24 +02:00
2017-04-04 15:51:00 +02:00
2017-04-04 15:52:01 +02:00
2017-04-04 15:52:37 +02:00
2017-04-04 15:53:14 +02:00
2019-02-12 22:50:49 +01:00
2019-02-12 22:50:49 +01:00
2019-02-12 22:50:49 +01:00
2019-02-12 22:50:49 +01:00
2018-08-02 15:45:57 +02:00
2017-04-07 09:26:58 -04:00