diff options
Diffstat (limited to 'src/core/bitmath_func.hpp')
-rw-r--r-- | src/core/bitmath_func.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/bitmath_func.hpp b/src/core/bitmath_func.hpp index 14e9ed4e4..7a4a5da85 100644 --- a/src/core/bitmath_func.hpp +++ b/src/core/bitmath_func.hpp @@ -178,7 +178,7 @@ static FORCEINLINE T ToggleBit(T &x, const uint8 y) extern const uint8 _ffb_64[64]; /** - * Returns the first occure of a bit in a 6-bit value (from right). + * Returns the first non-zero bit in a 6-bit value (from right). * * Returns the position of the first bit that is not zero, counted from the * LSB. Ie, 110100 returns 2, 000001 returns 0, etc. When x == 0 returns @@ -190,7 +190,7 @@ extern const uint8 _ffb_64[64]; #define FIND_FIRST_BIT(x) _ffb_64[(x)] /** - * Finds the position of the first bit in an integer. + * Finds the position of the first non-zero bit in an integer. * * This function returns the position of the first bit set in the * integer. It does only check the bits of the bitmask |