carb::math
-
namespace math
Namespace for various math helper functions.
Functions
carb::math::bitScanForward: Searches an integer value from least significant bit to most significant bit for the first set (1) bit.
carb::math::bitScanReverse: Searches an integer value from most significant 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.