Functions | |
template<typename T , unsigned B> | |
T | signextend (const T x) |
Sign extension. More... | |
unsigned int | log2 (unsigned int v) |
Base 2 log of 32-bit number. More... | |
|
inline |
Base 2 log of 32-bit number.
Modified from Stanford bit twiddling hacks.
Definition at line 172 of file common.hpp.
|
inline |