carb::math¶
Namespace for various math helper functions.
Functions¶
carb::math::bitScanForward: Searches an integer value from least signficiant bit to most significant bit for the first set (1) bit.
carb::math::bitScanReverse: Searches an integer value from most signficiant bit to least significant bit for the first set (1) bit.
carb::math::isPowerOf2: Returns whether the given integer value is a power of two.
carb::math::numLeadingZeroBits: Returns the number of leading zero bits for an integer value.
carb::math::popCount: Returns the number of set (1) bits in an integer value.