From 96c668b1dd8c5b30796e10f068b8f7d082aef10c Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Thu, 5 Sep 2013 10:12:00 +0000 Subject: add positive_mod() utility function. --- source/blender/blenlib/BLI_math_base.h | 1 + 1 file changed, 1 insertion(+) (limited to 'source/blender/blenlib/BLI_math_base.h') 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); -- cgit v1.2.3