On the Bit Twiddling Hacks website the following algorithm is provided to round up an integer to the next power of two: the followin
On the Bit Twiddling Hacks website the following algorithm is provided to round up an integer to the next power of two: the followin