Functions

Check if x is a power of 2.
Tick up to the next higher power of 2 if the provided number is not a power of 2.
Tick down to the next higher power of 2 if the provided number is not a power of 2.
Does not care about power of 2 requirements.