/ Published in: ActionScript 3
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
x = x / 2; x = x / 64; //equals: x = x >> 1; x = x >> 6;
URL: http://lab.polygonal.de/2007/05/10/bitwise-gems-fast-integer-math/