Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2017-12-15 18:16:22 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2017-12-15 18:54:28 +0300
commit2aa0f8a41bba64933db19ad4231f9392a8445cd7 (patch)
tree5fa7a62db4bb8ae71183860a58b2d34a95c43797 /source/blender/blenlib
parentff0d3c520ff94434f0cc86a13cccd479622d74b8 (diff)
Math utils: Cleanup, use _uint suffix for function which operates on uint
Diffstat (limited to 'source/blender/blenlib')
-rw-r--r--source/blender/blenlib/BLI_math_bits.h2
-rw-r--r--source/blender/blenlib/intern/math_bits_inline.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/blenlib/BLI_math_bits.h b/source/blender/blenlib/BLI_math_bits.h
index 1ac98a682d1..1d0ee77feed 100644
--- a/source/blender/blenlib/BLI_math_bits.h
+++ b/source/blender/blenlib/BLI_math_bits.h
@@ -31,7 +31,7 @@ extern "C" {
#include "BLI_math_inline.h"
-MINLINE unsigned int highest_order_bit_i(unsigned int n);
+MINLINE unsigned int highest_order_bit_uint(unsigned int n);
MINLINE unsigned short highest_order_bit_s(unsigned short n);
#ifdef __GNUC__
diff --git a/source/blender/blenlib/intern/math_bits_inline.c b/source/blender/blenlib/intern/math_bits_inline.c
index 82d7e2114c2..9f502d367cb 100644
--- a/source/blender/blenlib/intern/math_bits_inline.c
+++ b/source/blender/blenlib/intern/math_bits_inline.c
@@ -27,7 +27,7 @@
#include "BLI_math_bits.h"
-MINLINE unsigned int highest_order_bit_i(unsigned int n)
+MINLINE unsigned int highest_order_bit_uint(unsigned int n)
{
n |= (n >> 1);
n |= (n >> 2);