diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-03-27 05:16:10 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-03-27 05:17:30 +0300 |
commit | 9ba948a4859da3308033fa6dc54f74433d7e6a21 (patch) | |
tree | 0bd6e95eb59d9af03aa32d925c68e1cbebecc246 /source/blender/blenlib/intern/math_geom_inline.c | |
parent | 337eb8c1de4c57c34520b467d79779153335eecb (diff) |
Cleanup: style, use braces for blenlib
Diffstat (limited to 'source/blender/blenlib/intern/math_geom_inline.c')
-rw-r--r-- | source/blender/blenlib/intern/math_geom_inline.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/source/blender/blenlib/intern/math_geom_inline.c b/source/blender/blenlib/intern/math_geom_inline.c index 58262b9a364..0922c47f553 100644 --- a/source/blender/blenlib/intern/math_geom_inline.c +++ b/source/blender/blenlib/intern/math_geom_inline.c @@ -73,16 +73,18 @@ MINLINE void mul_sh_fl(float r[9], const float f) { int i; - for (i = 0; i < 9; i++) + for (i = 0; i < 9; i++) { r[i] *= f; + } } MINLINE void add_sh_shsh(float r[9], const float a[9], const float b[9]) { int i; - for (i = 0; i < 9; i++) + for (i = 0; i < 9; i++) { r[i] = a[i] + b[i]; + } } MINLINE float dot_shsh(const float a[9], const float b[9]) @@ -90,8 +92,9 @@ MINLINE float dot_shsh(const float a[9], const float b[9]) float r = 0.0f; int i; - for (i = 0; i < 9; i++) + for (i = 0; i < 9; i++) { r += a[i] * b[i]; + } return r; } |