OEBitIsPowerOf2¶
bool OEBitIsPowerOf2(unsigned int bitmask, const bool allowZero=false)
Returns true if bitmask is a power of 2; otherwise, it returns false.
- allowZero
If this value is set to
true, 0 is considered a power of 2. The default isfalse.