Im having some trouble understanding how and why this code works the way it does. My partner in this assignment finished this part and I cant get ahold of him to find out ho
c = 33 + ~n;
This calculates how many high order bits are remaining after using n low order bits.
n
((x << c)>>c
This fills the high order bits with the same value as the sign bit of x.
x
!(blah ^ x)
This is equivalent to
blah == x