carb/math/Util.h¶
↰ Parent directory: carb/math/
Carbonite math utility functions.
Source: carb/math/Util.h
Included By¶
carb/thread/Util.h: Carbonite thread utilities.
carb/audio/AudioUtils.h: Inline utility functions for audio processing.
carb/extras/HandleDatabase.h: HandleDatabase definition file.
Namespaces¶
carb: The main Carbonite namespace.
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.