I have this an unsigned int (uint16_t): 391 I want to flip all the bits around from right to left. That is to say, the rightmost bit becomes the leftmost bit.
I have tried x = 391 << sizeof(uint16_t)
This seems not to work.
The desired output is: x = 57728
My current output is: x = 1564