Posted By

allnatural on 05/19/09


Tagged

math center bitwise division divide


Versions (?)

Simple Bitwise - Dividing By Two


 / Published in: ActionScript 3
 

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

  1. x = x / 2;
  2. x = x / 64;
  3.  
  4. //equals:
  5. x = x >> 1;
  6. x = x >> 6;

Report this snippet  

You need to login to post a comment.