Return to Snippet

Revision: 14115
at May 19, 2009 14:02 by allnatural


Initial Code
x = x / 2;
x = x / 64;

//equals:
x = x >> 1;
x = x >> 6;

Initial URL
http://lab.polygonal.de/2007/05/10/bitwise-gems-fast-integer-math/

Initial Description


Initial Title
Simple Bitwise - Dividing By Two

Initial Tags
math, center

Initial Language
ActionScript 3