aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/main/imports.h
diff options
context:
space:
mode:
authorMatt Turner <[email protected]>2012-07-20 10:06:35 -0700
committerMatt Turner <[email protected]>2012-07-21 08:23:38 -0700
commitf58ba6ca9147137c7a2d31a1014235f7077b7752 (patch)
tree46f6d2c75436d591cfd66721fd00de8301373437 /src/mesa/main/imports.h
parent948b1c541f32b12e8264b1eeb79ccbb696661f54 (diff)
Remove _mesa_inv_sqrtf in favor of 1/SQRTF
Except for a couple of explicit uses, _mesa_inv_sqrtf was disabled since its addition in 2003 (see f9b1e524). Reviewed-by: Brian Paul <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa/main/imports.h')
-rw-r--r--src/mesa/main/imports.h9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/mesa/main/imports.h b/src/mesa/main/imports.h
index e825f21801b..254440093c5 100644
--- a/src/mesa/main/imports.h
+++ b/src/mesa/main/imports.h
@@ -105,11 +105,7 @@ typedef union { GLfloat f; GLint i; } fi_type;
/***
*** INV_SQRTF: single-precision inverse square root
***/
-#if 0
-#define INV_SQRTF(X) _mesa_inv_sqrt(X)
-#else
-#define INV_SQRTF(X) (1.0F / SQRTF(X)) /* this is faster on a P4 */
-#endif
+#define INV_SQRTF(X) (1.0F / SQRTF(X))
/**
@@ -565,9 +561,6 @@ _mesa_realloc( void *oldBuffer, size_t oldSize, size_t newSize );
extern void
_mesa_memset16( unsigned short *dst, unsigned short val, size_t n );
-extern float
-_mesa_inv_sqrtf(float x);
-
#ifndef FFS_DEFINED
#define FFS_DEFINED 1