#[inline] fn swar_add(x: u64, y: u64, h: u64) -> u64 { ((x & !h) + (y & !h)) ^ ((x ^ y) & h) } #[inline] fn swar_sub(x: u64, y: u64, h: u64) -> u64 { ((x | h) - (y & !h)) ^ ((x ^ !y) & h) } Where h = 0x8000800080008000
-
-
-
If you like SWAR hacks and you like the Game of Life, you might like https://fanf.livejournal.com/93032.html
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.