From 948b1c541f32b12e8264b1eeb79ccbb696661f54 Mon Sep 17 00:00:00 2001 From: Matt Turner Date: Fri, 20 Jul 2012 09:55:47 -0700 Subject: 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 Reviewed-by: Kenneth Graunke --- src/mesa/main/imports.h | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) (limited to 'src/mesa/main/imports.h') 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 -- cgit v1.2.3