diff options
author | Brian Paul <brianp@vmware.com> | 2012-09-03 12:19:15 -0600 |
---|---|---|
committer | Brian Paul <brianp@vmware.com> | 2012-09-03 18:07:41 -0600 |
commit | 56ccdf7e30f5bc1bc6b71d49bad2a9049ae170c4 (patch) | |
tree | 1d890a1708b7262c080444a8cd57948ea49a9edd /src/mesa/math | |
parent | f44bda17f515c411071ca8744ebd96039d9c583b (diff) | |
download | external_mesa3d-56ccdf7e30f5bc1bc6b71d49bad2a9049ae170c4.zip external_mesa3d-56ccdf7e30f5bc1bc6b71d49bad2a9049ae170c4.tar.gz external_mesa3d-56ccdf7e30f5bc1bc6b71d49bad2a9049ae170c4.tar.bz2 |
mesa: remove SQRTF, use sqrtf. Convert INV_SQRT() to inline function.
We were already defining sqrtf where we don't have the C99 version.
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Matt Turner <mattst88@gmail.com>
Diffstat (limited to 'src/mesa/math')
-rw-r--r-- | src/mesa/math/m_matrix.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/math/m_matrix.c b/src/mesa/math/m_matrix.c index 00a6c81..b9f22d7 100644 --- a/src/mesa/math/m_matrix.c +++ b/src/mesa/math/m_matrix.c @@ -856,7 +856,7 @@ _math_matrix_rotate( GLmatrix *mat, } if (!optimized) { - const GLfloat mag = SQRTF(x * x + y * y + z * z); + const GLfloat mag = sqrtf(x * x + y * y + z * z); if (mag <= 1.0e-4) { /* no rotation, leave mat as-is */ |