clp2#
Functions
-
size_t clp2(size_t n)#
Fast implementations of clp2() and flp2(), based on http://ptgmedia.pearsoncmg.com/images/0201914654/samplechapter/warrench03.pdf Returns x rounded up to next power of two.
-
size_t flp2(size_t n)#
Returns x rounded down to previous power of two.