make cmwc only 32 bits wide. oops, this speeds up everything
parent
69f5381d34
commit
1375e32c62
|
@ -43,10 +43,10 @@ M:: cmwc random-32* ( cmwc -- n )
|
|||
|
||||
t -32 shift cmwc (>>c)
|
||||
|
||||
t cmwc [ b>> bitand ] [ c>> + ] bi 64 bits t!
|
||||
t cmwc [ b>> bitand ] [ c>> + ] bi 32 bits t!
|
||||
t cmwc r>> > [
|
||||
cmwc [ 1 + ] change-c drop
|
||||
t cmwc b>> - 64 bits t!
|
||||
t cmwc b>> - 32 bits t!
|
||||
] when
|
||||
|
||||
cmwc [ r>> t - 32 bits dup ] [ i>> ] [ Q>> ] tri set-nth ;
|
||||
|
|
Loading…
Reference in New Issue