Email or username:

Password:

Forgot your password?
Top-level
Devil Lu Linvega

If you want to do a quick modulo that falls on a number in the (2,4,8,16) series, you can use the AND bitwise operator with the bound-1 value.

Example:

% 4, is the same as & 3
% 8, is the same as & 7
etc..

1 comment
Go Up