roundUpToPowerOfTwo

Round up x to the next power of two. If x is already a power of two, returns x.

T
roundUpToPowerOfTwo
(
T
)
(
T x
)

Meta