diff options
author | Matt Turner <mattst88@gmail.com> | 2012-07-20 09:55:47 -0700 |
---|---|---|
committer | Matt Turner <mattst88@gmail.com> | 2012-07-21 08:23:38 -0700 |
commit | 948b1c541f32b12e8264b1eeb79ccbb696661f54 (patch) | |
tree | d830f2187a7af20b6c8cbefe106a45b597aea2d9 /src/mesa/main/imports.h | |
parent | ec79138138c3c88afb2052823b1e3f5271493085 (diff) |
Remove _mesa_sqrt* in favor of plain sqrt
Temporarily disabled since 2003 (see 386578c5b).
This saves us from calling sqrt() 128 times to generate the sqrttab in
one_time_init().
Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Diffstat (limited to 'src/mesa/main/imports.h')
-rw-r--r-- | src/mesa/main/imports.h | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/src/mesa/main/imports.h b/src/mesa/main/imports.h index c0b6ceceac6..e825f21801b 100644 --- a/src/mesa/main/imports.h +++ b/src/mesa/main/imports.h @@ -99,11 +99,7 @@ typedef union { GLfloat f; GLint i; } fi_type; /*** *** SQRTF: single-precision square root ***/ -#if 0 /* _mesa_sqrtf() not accurate enough - temporarily disabled */ -# define SQRTF(X) _mesa_sqrtf(X) -#else -# define SQRTF(X) (float) sqrt((float) (X)) -#endif +#define SQRTF(X) (float) sqrt((float) (X)) /*** @@ -569,18 +565,9 @@ _mesa_realloc( void *oldBuffer, size_t oldSize, size_t newSize ); extern void _mesa_memset16( unsigned short *dst, unsigned short val, size_t n ); -extern double -_mesa_sqrtd(double x); - -extern float -_mesa_sqrtf(float x); - extern float _mesa_inv_sqrtf(float x); -extern void -_mesa_init_sqrt_table(void); - #ifndef FFS_DEFINED #define FFS_DEFINED 1 |