summaryrefslogtreecommitdiff
path: root/src/mesa/main/imports.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesa/main/imports.h')
-rw-r--r--src/mesa/main/imports.h15
1 files changed, 14 insertions, 1 deletions
diff --git a/src/mesa/main/imports.h b/src/mesa/main/imports.h
index 354819f43f..73c3b6eb42 100644
--- a/src/mesa/main/imports.h
+++ b/src/mesa/main/imports.h
@@ -1,4 +1,4 @@
-/* $Id: imports.h,v 1.16 2003/03/03 21:44:39 brianp Exp $ */
+/* $Id: imports.h,v 1.17 2003/03/04 16:33:53 brianp Exp $ */
/*
* Mesa 3-D graphics library
@@ -169,6 +169,16 @@ float asm_sqrt (float x);
/***
+ *** 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
+
+
+/***
*** LOG2: Log base 2 of float
***/
#ifdef USE_IEEE
@@ -588,6 +598,9 @@ _mesa_sqrtd(double x);
extern float
_mesa_sqrtf(float x);
+extern float
+_mesa_inv_sqrtf(float x);
+
extern double
_mesa_pow(double x, double y);