diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2017-12-15 18:17:37 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2017-12-15 18:54:28 +0300 |
commit | 02ec0b53df0a966048500e659389dbb987847c49 (patch) | |
tree | 6fcb38809b536b5132ec01394a46502cfbbe291e /source/blender/blenlib/BLI_math_bits.h | |
parent | 2aa0f8a41bba64933db19ad4231f9392a8445cd7 (diff) |
Math utils: Make it more clear what the functions are returning
Diffstat (limited to 'source/blender/blenlib/BLI_math_bits.h')
-rw-r--r-- | source/blender/blenlib/BLI_math_bits.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/blenlib/BLI_math_bits.h b/source/blender/blenlib/BLI_math_bits.h index 1d0ee77feed..40a1d84b0e1 100644 --- a/source/blender/blenlib/BLI_math_bits.h +++ b/source/blender/blenlib/BLI_math_bits.h @@ -31,6 +31,7 @@ extern "C" { #include "BLI_math_inline.h" +/* NOTE: Those functions returns 2 to the power of index of highest order bit. */ MINLINE unsigned int highest_order_bit_uint(unsigned int n); MINLINE unsigned short highest_order_bit_s(unsigned short n); |