You are viewing a single comment's thread. Return to all comments →
int msb = 0; while (x >> msb) { msb++; } return (1l << msb) - 1l - x;
Seems like cookies are disabled on this browser, please enable them to open this website
The Great XOR
You are viewing a single comment's thread. Return to all comments →