summaryrefslogtreecommitdiff
path: root/graphics/MesaLib/patches/patch-aq
blob: fb0f7f95dd8a7fae8869396def88fb5c25278edf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
$NetBSD: patch-aq,v 1.1 2008/04/24 07:40:24 bjs Exp $

--- src/mesa/main/imports.h.orig	2008-03-19 19:25:18.000000000 -0400
+++ src/mesa/main/imports.h
@@ -292,7 +292,7 @@ static INLINE int GET_FLOAT_BITS( float 
  *** LDEXPF: multiply value by an integral power of two
  *** FREXPF: extract mantissa and exponent from value
  ***/
-#if defined(__gnu_linux__)
+#if defined(USE_NATIVE_LIBM_FUNCS)
 /* C99 functions */
 #define CEILF(x)   ceilf(x)
 #define FLOORF(x)  floorf(x)
@@ -515,7 +515,9 @@ static INLINE int iceil(float f)
 /* Hardware default: All exceptions masked, extended double precision,
  * round to nearest (IEEE compliant):
  */
+#ifndef DEFAULT_X86_FPU
 #define DEFAULT_X86_FPU		0x037f
+#endif
 /* All exceptions masked, single precision, round to nearest:
  */
 #define FAST_X86_FPU		0x003f