]> gitweb @ CieloNegro.org - pkgsrc-xorg-server.git/blob - files/patch-mesa
The original wip/modular-xorg-server
[pkgsrc-xorg-server.git] / files / patch-mesa
1 $NetBSD$
2
3 --- ../Mesa-7.0.4/src/mesa/main/imports.h.orig  2008-06-24 14:27:44.000000000 -0400
4 +++ ../Mesa-7.0.4/src/mesa/main/imports.h
5 @@ -292,7 +292,7 @@ static INLINE int GET_FLOAT_BITS( float 
6   *** LDEXPF: multiply value by an integral power of two
7   *** FREXPF: extract mantissa and exponent from value
8   ***/
9 -#if defined(__gnu_linux__)
10 +#if defined(USE_NATIVE_LIBM_FUNCS)
11  /* C99 functions */
12  #define CEILF(x)   ceilf(x)
13  #define FLOORF(x)  floorf(x)
14 @@ -515,7 +515,9 @@ static INLINE int iceil(float f)
15  /* Hardware default: All exceptions masked, extended double precision,
16   * round to nearest (IEEE compliant):
17   */
18 +#ifndef DEFAULT_X86_FPU
19  #define DEFAULT_X86_FPU                0x037f
20 +#endif
21  /* All exceptions masked, single precision, round to nearest:
22   */
23  #define FAST_X86_FPU           0x003f