Puzzle: what does "((x * 299 + 41) & 511) > 294" compute? Bonus points for explaining how it works.
@hhpapazian No. For x = 0, result is F, but take for example x = 12. 12*299+41 = 0xe2d, so & 511 = 0x2d, which is not > 294, so also F.
-
-
@raphlinus Ah. Foiled again. And the purpose? -
@hhpapazian I might use this in a project I'm working on, as it's (probably) the fastest way of computing $(something) without using a LUT. - 9 more replies
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.