mirror of
https://github.com/exoticorn/curlywas.git
synced 2026-01-20 11:46:43 +01:00
implement binop-assignment (+= etc.)
This commit is contained in:
@@ -5,4 +5,11 @@ fn xorshift(x: i32) -> i32 {
|
||||
let lazy x = x ^ (x #>> 17);
|
||||
let inline x = x ^ (x << 5);
|
||||
x
|
||||
}
|
||||
|
||||
fn xorshift2(x: i32) -> i32 {
|
||||
x ^= x << 13;
|
||||
x ^= x #>> 17;
|
||||
x ^= x << 5;
|
||||
x
|
||||
}
|
||||
Reference in New Issue
Block a user