So i was looking at an example of a function to reverse the bytes of an unsigned 4 byte int
I don't exactly understand how they figured out their shifts? Can someone explain the thought process behind this?
The function works like this: for int x = 0x12345678 it will return 0x78563412.
