diff options
author | Campbell Barton <ideasman42@gmail.com> | 2015-03-18 22:13:50 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2015-03-18 22:13:50 +0300 |
commit | c31aae04870013f5913e03d3a5f6b72c5fc142d9 (patch) | |
tree | 58fe59563a87e3fc305cb73bf4cad1a60de87459 /source | |
parent | 1dd1d286c67ef1948bd717a8c52e9667cf3382b1 (diff) |
Use fabsf for floats
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/blenlib/intern/math_vector_inline.c | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/source/blender/blenlib/intern/math_vector_inline.c b/source/blender/blenlib/intern/math_vector_inline.c index 89ae23fd448..621d5fbfbfe 100644 --- a/source/blender/blenlib/intern/math_vector_inline.c +++ b/source/blender/blenlib/intern/math_vector_inline.c @@ -613,44 +613,44 @@ MINLINE void negate_v3_short(short r[3]) MINLINE void abs_v2(float r[2]) { - r[0] = fabs(r[0]); - r[1] = fabs(r[1]); + r[0] = fabsf(r[0]); + r[1] = fabsf(r[1]); } MINLINE void abs_v2_v2(float r[2], const float a[2]) { - r[0] = fabs(a[0]); - r[1] = fabs(a[1]); + r[0] = fabsf(a[0]); + r[1] = fabsf(a[1]); } MINLINE void abs_v3(float r[3]) { - r[0] = fabs(r[0]); - r[1] = fabs(r[1]); - r[2] = fabs(r[2]); + r[0] = fabsf(r[0]); + r[1] = fabsf(r[1]); + r[2] = fabsf(r[2]); } MINLINE void abs_v3_v3(float r[3], const float a[3]) { - r[0] = fabs(a[0]); - r[1] = fabs(a[1]); - r[2] = fabs(a[2]); + r[0] = fabsf(a[0]); + r[1] = fabsf(a[1]); + r[2] = fabsf(a[2]); } MINLINE void abs_v4(float r[4]) { - r[0] = fabs(r[0]); - r[1] = fabs(r[1]); - r[2] = fabs(r[2]); - r[3] = fabs(r[3]); + r[0] = fabsf(r[0]); + r[1] = fabsf(r[1]); + r[2] = fabsf(r[2]); + r[3] = fabsf(r[3]); } MINLINE void abs_v4_v4(float r[4], const float a[4]) { - r[0] = fabs(a[0]); - r[1] = fabs(a[1]); - r[2] = fabs(a[2]); - r[3] = fabs(a[3]); + r[0] = fabsf(a[0]); + r[1] = fabsf(a[1]); + r[2] = fabsf(a[2]); + r[3] = fabsf(a[3]); } MINLINE float dot_v2v2(const float a[2], const float b[2]) |