Hacker tips
Jump to navigation
Jump to search
Hex
See Hex.
Bit manipulation
Endian swap
For 32-bit:
#pseudo code
v = (v <<< 24) & 0xff00ff00 | (v <<< 8) & 0x00ff00ff
This only requires 2 rotations, 2 bitwise and and 1 bitwise or.