summaryrefslogtreecommitdiff
path: root/src/mesa/tnl/t_vb_texgen.c
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2003-03-04 16:33:53 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2003-03-04 16:33:53 +0000
commitf9b1e5241facc8cf255c258082d5cb5b04783e93 (patch)
treeea3bb1859dba42e746b0f14dce5193b81c922ac5 /src/mesa/tnl/t_vb_texgen.c
parent386578c5bcc5c6701a6b9692cdc04cfe4064ca06 (diff)
added _mesa_inv_sqrtf() and INV_SQRTF() (Josh Vanderhoof)
Diffstat (limited to 'src/mesa/tnl/t_vb_texgen.c')
-rw-r--r--src/mesa/tnl/t_vb_texgen.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mesa/tnl/t_vb_texgen.c b/src/mesa/tnl/t_vb_texgen.c
index 74ad17356b..f2454e6ffb 100644
--- a/src/mesa/tnl/t_vb_texgen.c
+++ b/src/mesa/tnl/t_vb_texgen.c
@@ -1,4 +1,4 @@
-/* $Id: t_vb_texgen.c,v 1.17 2003/03/01 01:50:27 brianp Exp $ */
+/* $Id: t_vb_texgen.c,v 1.18 2003/03/04 16:34:04 brianp Exp $ */
/*
* Mesa 3-D graphics library
@@ -113,7 +113,7 @@ static void build_m3( GLfloat f[][3], GLfloat m[],
fz = f[i][2] = u[2] - norm[2] * two_nu;
m[i] = fx * fx + fy * fy + (fz + 1.0F) * (fz + 1.0F);
if (m[i] != 0.0F) {
- m[i] = 0.5F / SQRTF(m[i]);
+ m[i] = 0.5F * _mesa_inv_sqrtf(m[i]);
}
}
}
@@ -142,7 +142,7 @@ static void build_m2( GLfloat f[][3], GLfloat m[],
fz = f[i][2] = u[2] - norm[2] * two_nu;
m[i] = fx * fx + fy * fy + (fz + 1.0F) * (fz + 1.0F);
if (m[i] != 0.0F) {
- m[i] = 0.5F / SQRTF(m[i]);
+ m[i] = 0.5F * _mesa_inv_sqrtf(m[i]);
}
}
}