diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-09-05 14:12:00 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-09-05 14:12:00 +0400 |
commit | 96c668b1dd8c5b30796e10f068b8f7d082aef10c (patch) | |
tree | 387eb38664f7628cd72de17001310ccde96d6f9d /source/blender/blenlib/BLI_math_base.h | |
parent | c84b18790d220d9468aa817e78c16088bb0de57d (diff) |
add positive_mod() utility function.
Diffstat (limited to 'source/blender/blenlib/BLI_math_base.h')
-rw-r--r-- | source/blender/blenlib/BLI_math_base.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/blenlib/BLI_math_base.h b/source/blender/blenlib/BLI_math_base.h index 69dbd3253f0..86aabf76350 100644 --- a/source/blender/blenlib/BLI_math_base.h +++ b/source/blender/blenlib/BLI_math_base.h @@ -222,6 +222,7 @@ MINLINE int power_of_2_max_i(int n); MINLINE int power_of_2_min_i(int n); MINLINE int divide_round_i(int a, int b); +MINLINE int positive_mod(int i, int n); MINLINE float shell_angle_to_dist(const float angle); |