rocPRIM
|
Statically determine log2(N), rounded up. More...
#include <functional.hpp>
Public Types | |
enum | { VALUE = Log2<N, (CURRENT_VAL >> 1), COUNT + 1>::VALUE } |
Static logarithm value. | |
Statically determine log2(N), rounded up.
For example: Log2<8>::VALUE // 3 Log2<3>::VALUE // 2