summaryrefslogtreecommitdiff
path: root/xc/extras/Mesa/src/mmath.h
diff options
context:
space:
mode:
Diffstat (limited to 'xc/extras/Mesa/src/mmath.h')
-rw-r--r--xc/extras/Mesa/src/mmath.h17
1 files changed, 11 insertions, 6 deletions
diff --git a/xc/extras/Mesa/src/mmath.h b/xc/extras/Mesa/src/mmath.h
index 30a300cdb..ad59b948d 100644
--- a/xc/extras/Mesa/src/mmath.h
+++ b/xc/extras/Mesa/src/mmath.h
@@ -22,7 +22,7 @@
* AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
-/* $XFree86: xc/extras/Mesa/src/mmath.h,v 1.4 2000/03/03 18:30:08 tsi Exp $ */
+
/*
* Faster arithmetic functions. If the FAST_MATH preprocessor symbol is
@@ -47,10 +47,7 @@
* In the worst case, we force the compiler to use a memory access to
* truncate the float, by specifying the 'volatile' keyword.
*/
-#if defined(__linux__) && defined(__i386__) && !defined(IN_MODULE)
-/*
- * A libc interface is needed for this...
- */
+#if defined(__linux__) && defined(__i386__)
#include <fpu_control.h>
#if !defined(_FPU_SETCW)
@@ -82,6 +79,7 @@ typedef unsigned short fpu_control_t;
}
#endif
+
/* Put it back how the application had it.
*/
#define END_FAST_MATH(x) \
@@ -89,6 +87,7 @@ typedef unsigned short fpu_control_t;
_FPU_SETCW( x ); \
}
+
#define HAVE_FAST_MATH
#elif defined(__WATCOMC__) && !defined(NO_FAST_MATH)
@@ -330,7 +329,13 @@ do { \
} while(0)
-extern void _mesa_init_math(void);
+
+extern void
+_mesa_init_math(void);
+
+
+extern GLuint
+_mesa_bitcount(GLuint n);
#endif