add positive_mod() utility function.

This commit is contained in:
2013-09-05 10:12:00 +00:00
parent c84b18790d
commit 96c668b1dd
3 changed files with 7 additions and 2 deletions

View File

@@ -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);