implement binop-assignment (+= etc.)

This commit is contained in:
2022-05-07 20:30:16 +02:00
parent a52fe53a01
commit 01d64baaab
2 changed files with 90 additions and 42 deletions

View File

@@ -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
}