[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [44755] trunk/blender/source/blender/ blenkernel/intern/CCGSubSurf.c: Use sqrtf rather than sqrt in CCGSubSurf.c

Nicholas Bishop nicholasbishop at gmail.com
Thu Mar 8 23:33:42 CET 2012


Revision: 44755
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=44755
Author:   nicholasbishop
Date:     2012-03-08 22:33:34 +0000 (Thu, 08 Mar 2012)
Log Message:
-----------
Use sqrtf rather than sqrt in CCGSubSurf.c

Modified Paths:
--------------
    trunk/blender/source/blender/blenkernel/intern/CCGSubSurf.c

Modified: trunk/blender/source/blender/blenkernel/intern/CCGSubSurf.c
===================================================================
--- trunk/blender/source/blender/blenkernel/intern/CCGSubSurf.c	2012-03-08 21:14:54 UTC (rev 44754)
+++ trunk/blender/source/blender/blenkernel/intern/CCGSubSurf.c	2012-03-08 22:33:34 UTC (rev 44755)
@@ -732,7 +732,7 @@
 	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 @@
 			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 @@
 			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;




More information about the Bf-blender-cvs mailing list