How do I programmatically return the maximum of two integers without using any comparison operators and without using if, else, etc?
if
else
int max(int a, int b) { return ((a - b) >> 31) ? b : a; }