3 ms·
Unfortunately signed overflow behavior is undefined in C so you can't guarantee your XOR with rp will give the expected result. This is partly why the article i
by aardvark179 13y ago
Unfortunately signed overflow behavior is undefined in C so you can't guarantee your XOR with rp will give the expected result. This is partly why the article is so careful in its casting and the order of its checks.
This actually easier to do in Java and many other languages because signed arithmetic is precisely defined.