You are viewing a single comment's thread. Return to all comments →
do the same but with a max_of_two more efficient
int max(int x, int y) { return(x ^ ((x ^ y) & -(x < y))); } int max_of_four(int a, int b, int c, int d) { return( max(a, max(b , max(c, d)))); }
HERE for more Bit Twiddling Hacks
Seems like cookies are disabled on this browser, please enable them to open this website
Functions
You are viewing a single comment's thread. Return to all comments →
do the same but with a max_of_two more efficient
HERE for more Bit Twiddling Hacks