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

18 de enero de 2020 · 1 min · 46 palabras · Nacho Cano