diff options
author | Campbell Barton <ideasman42@gmail.com> | 2014-03-28 07:53:37 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2014-03-28 07:53:37 +0400 |
commit | 7199e2288f3df27ee2d21593da64ef4597fb86fd (patch) | |
tree | 33e69c15bb612736079510dd9fbcc055c6f06e51 /source/blender/blenkernel/intern/curve.c | |
parent | e6e74381819666141a5dd02d670ef06e64018dc3 (diff) |
Code cleanup: use sqrtf when input and output are float
Diffstat (limited to 'source/blender/blenkernel/intern/curve.c')
-rw-r--r-- | source/blender/blenkernel/intern/curve.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/blenkernel/intern/curve.c b/source/blender/blenkernel/intern/curve.c index bc65e5bf749..864682c5607 100644 --- a/source/blender/blenkernel/intern/curve.c +++ b/source/blender/blenkernel/intern/curve.c @@ -1931,8 +1931,8 @@ static void calc_bevel_sin_cos(float x1, float y1, float x2, float y2, float *si { float t01, t02, x3, y3; - t01 = (float)sqrt(x1 * x1 + y1 * y1); - t02 = (float)sqrt(x2 * x2 + y2 * y2); + t01 = sqrtf(x1 * x1 + y1 * y1); + t02 = sqrtf(x2 * x2 + y2 * y2); if (t01 == 0.0f) t01 = 1.0f; if (t02 == 0.0f) @@ -1960,7 +1960,7 @@ static void calc_bevel_sin_cos(float x1, float y1, float x2, float y2, float *si y3 = -x1; } else { - t01 = (float)sqrt(x3 * x3 + y3 * y3); + t01 = sqrtf(x3 * x3 + y3 * y3); x3 /= t01; y3 /= t01; } |