Hackeos para operaciones con bits
int x; // we want to find the minimum of x and y int y; int r; // the result goes here r = y ^ ((x ^ y) & -(x < y)); // min(x, y) En la página Bit Twiddling Hacks… » @Alvy | microsiervos.com
int x; // we want to find the minimum of x and y int y; int r; // the result goes here r = y ^ ((x ^ y) & -(x < y)); // min(x, y) En la página Bit Twiddling Hacks… » @Alvy | microsiervos.com