You are viewing a single comment's thread. Return to all comments →
Or just add 2^32 to the one's complement result:
return (~x) + (1<<32)
Seems like cookies are disabled on this browser, please enable them to open this website
Flipping bits
You are viewing a single comment's thread. Return to all comments →
Or just add 2^32 to the one's complement result:
return (~x) + (1<<32)