OEBitIsPowerOf2
OEBitIsPowerOf2(bitmask: int, allowZero: bool = False) -> bool
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.