Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2011-03-28 08:22:50 +0400
committerCampbell Barton <ideasman42@gmail.com>2011-03-28 08:22:50 +0400
commitdd56ebe6076d7ffbe9dd698a5c1bc94fff6ff306 (patch)
tree170edbbd5cd75801473c5adf1b4491f84bc8f31e /source/blender/blenkernel/intern/bvhutils.c
parentac1cb5ee055840ba3481b8ad490e3be2a6a49cf2 (diff)
blenkernel: floats were being implicitly promoted to doubles, adjust to use floats.
Diffstat (limited to 'source/blender/blenkernel/intern/bvhutils.c')
-rw-r--r--source/blender/blenkernel/intern/bvhutils.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/source/blender/blenkernel/intern/bvhutils.c b/source/blender/blenkernel/intern/bvhutils.c
index d3afb93b5dd..5520e4d1d41 100644
--- a/source/blender/blenkernel/intern/bvhutils.c
+++ b/source/blender/blenkernel/intern/bvhutils.c
@@ -131,7 +131,7 @@ static float nearest_point_in_tri_surface(const float *v0,const float *v1,const
}
else
{
- if(fabs(A00) > FLT_EPSILON)
+ if(fabsf(A00) > FLT_EPSILON)
S = -B0/A00;
else
S = 0.0f;
@@ -156,7 +156,7 @@ static float nearest_point_in_tri_surface(const float *v0,const float *v1,const
}
else
{
- if(fabs(A11) > FLT_EPSILON)
+ if(fabsf(A11) > FLT_EPSILON)
T = -B1 / A11;
else
T = 0.0f;
@@ -182,7 +182,7 @@ static float nearest_point_in_tri_surface(const float *v0,const float *v1,const
}
else
{
- if(fabs(A11) > FLT_EPSILON)
+ if(fabsf(A11) > FLT_EPSILON)
T = -B1 / A11;
else
T = 0.0;
@@ -208,7 +208,7 @@ static float nearest_point_in_tri_surface(const float *v0,const float *v1,const
}
else
{
- if(fabs(A00) > FLT_EPSILON)
+ if(fabsf(A00) > FLT_EPSILON)
S = -B0 / A00;
else
S = 0.0f;
@@ -220,7 +220,7 @@ static float nearest_point_in_tri_surface(const float *v0,const float *v1,const
{
// Minimum at interior lv
float invDet;
- if(fabs(Det) > FLT_EPSILON)
+ if(fabsf(Det) > FLT_EPSILON)
invDet = 1.0f / Det;
else
invDet = 0.0f;
@@ -251,7 +251,7 @@ static float nearest_point_in_tri_surface(const float *v0,const float *v1,const
}
else
{
- if(fabs(denom) > FLT_EPSILON)
+ if(fabsf(denom) > FLT_EPSILON)
S = numer / denom;
else
S = 0.0f;
@@ -278,7 +278,7 @@ static float nearest_point_in_tri_surface(const float *v0,const float *v1,const
}
else
{
- if(fabs(A11) > FLT_EPSILON)
+ if(fabsf(A11) > FLT_EPSILON)
T = -B1 / A11;
else
T = 0.0f;
@@ -304,7 +304,7 @@ static float nearest_point_in_tri_surface(const float *v0,const float *v1,const
}
else
{
- if(fabs(denom) > FLT_EPSILON)
+ if(fabsf(denom) > FLT_EPSILON)
T = numer / denom;
else
T = 0.0f;
@@ -331,7 +331,7 @@ static float nearest_point_in_tri_surface(const float *v0,const float *v1,const
}
else
{
- if(fabs(A00) > FLT_EPSILON)
+ if(fabsf(A00) > FLT_EPSILON)
S = -B0 / A00;
else
S = 0.0f;
@@ -362,7 +362,7 @@ static float nearest_point_in_tri_surface(const float *v0,const float *v1,const
}
else
{
- if(fabs(denom) > FLT_EPSILON)
+ if(fabsf(denom) > FLT_EPSILON)
S = numer / denom;
else
S = 0.0f;