diff options
author | Campbell Barton <ideasman42@gmail.com> | 2014-01-15 05:31:30 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2014-01-15 06:40:40 +0400 |
commit | da8619fe23d22a5009868302bac05d965adb76ac (patch) | |
tree | 2bb47412febb179e51d45d60e32d5b6bf93d4bbd /source/blender/blenlib/BLI_math_base.h | |
parent | 9e8428b09ab60111a2160722c7910144646646be (diff) |
Math Lib: add iroundf function for: (int)floorf(a + 0.5f)
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 c634c9d8228..883f01d4eb6 100644 --- a/source/blender/blenlib/BLI_math_base.h +++ b/source/blender/blenlib/BLI_math_base.h @@ -231,6 +231,7 @@ MINLINE int is_power_of_2_i(int n); MINLINE int power_of_2_max_i(int n); MINLINE int power_of_2_min_i(int n); +MINLINE int iroundf(float a); MINLINE int divide_round_i(int a, int b); MINLINE int mod_i(int i, int n); |