diff options
author | Nicholas Bishop <nicholasbishop@gmail.com> | 2012-03-09 02:33:34 +0400 |
---|---|---|
committer | Nicholas Bishop <nicholasbishop@gmail.com> | 2012-03-09 02:33:34 +0400 |
commit | 06b2343b50ff502390b8c7cd62f8e103d03cec51 (patch) | |
tree | 6a8ed39eba492b58207ec6cb3b36f5d09152a572 /source/blender/blenkernel/intern/CCGSubSurf.c | |
parent | 3a3c5db82be895c6302f96295320b1bc89608924 (diff) |
Use sqrtf rather than sqrt in CCGSubSurf.c
Diffstat (limited to 'source/blender/blenkernel/intern/CCGSubSurf.c')
-rw-r--r-- | source/blender/blenkernel/intern/CCGSubSurf.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/blenkernel/intern/CCGSubSurf.c b/source/blender/blenkernel/intern/CCGSubSurf.c index 7d76723f756..7cee0272e4b 100644 --- a/source/blender/blenkernel/intern/CCGSubSurf.c +++ b/source/blender/blenkernel/intern/CCGSubSurf.c @@ -732,7 +732,7 @@ static void _face_calcIFNo(CCGFace *f, int lvl, int S, int x, int y, float *no, no[1] = b_dZ * a_cX - b_dX * a_cZ; no[2] = b_dX * a_cY - b_dY * a_cX; - length = sqrt(no[0] * no[0] + no[1] * no[1] + no[2] * no[2]); + length = sqrtf(no[0] * no[0] + no[1] * no[1] + no[2] * no[2]); if (length > EPSILON) { float invLength = 1.f/length; @@ -1419,7 +1419,7 @@ static void ccgSubSurf__calcVertNormals(CCGSubSurf *ss, NormAdd(no, FACE_getIFNo(f, lvl, _face_getVertIndex(f,v), gridSize - 1, gridSize - 1)); } - length = sqrt(no[0] * no[0] + no[1] * no[1] + no[2] * no[2]); + length = sqrtf(no[0] * no[0] + no[1] * no[1] + no[2] * no[2]); if (length > EPSILON) { float invLength = 1.0f/length; @@ -1477,7 +1477,7 @@ static void ccgSubSurf__calcVertNormals(CCGSubSurf *ss, for (y = 0; y < gridSize; y++) { for (x = 0; x < gridSize; x++) { float *no = FACE_getIFNo(f, lvl, S, x, y); - float length = sqrt(no[0] * no[0] + no[1] * no[1] + no[2] * no[2]); + float length = sqrtf(no[0] * no[0] + no[1] * no[1] + no[2] * no[2]); if (length > EPSILON) { float invLength = 1.0f/length; |