summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/compiler.h
Commit message (Collapse)AuthorAgeFilesLines
* mesa: Remove undefinition of _P symbol.Vinson Lee2012-05-181-6/+0
| | | | | | | IRIX isn't used anymore. Signed-off-by: Vinson Lee <[email protected]> Reviewed-by: Brian Paul <[email protected]>
* mesa: add STATIC_ASSERT() macro for compile-time assertionsBrian Paul2011-11-301-0/+12
| | | | | | | | | This can be used to check that tables have the right number of entries, etc. at compile-time. This will hopefully catch things that are missed if particular drivers aren't tested, for example. v2: Simplify the macro to omit the extra line number info (the compiler already indicates the line number). And wrap the macro for readability.
* Only use gcc visibility support with gcc4+.Tom Fogal2011-10-241-1/+1
| | | | | | | | | I had a colleague hitting issues compiling with an old gcc3.2 system. These patches got them through. NOTE: This is a candidate for the 7.11 branch. Reviewed-by: Brian Paul <[email protected]>
* Define INLINE macro in terms of inline.José Fonseca2011-09-081-15/+16
|
* mesa: Remove use of fpu_control.hChad Versace2011-08-161-3/+0
| | | | | | | | | | | Remove the inclusion of fpu_control.h from compiler.h. Since Bionic lacks fpu_control.h, this fixes the Android build. Also remove the sole use of the fpu_control bits, which was in debug.c. Those were brianp's debug bits, and he approved of their removal. Reviewed-by: Eric Anholt <[email protected]> Signed-off-by: Chad Versace <[email protected]>
* mesa: Remove MSVC stdint typedefs from compiler.h.Vinson Lee2011-08-041-23/+1
| | | | MSVC can now include the stdint.h at include/c99/stdint.h.
* mesa: Add an ifndef guard around the definition of the INLINE macroPaul Berry2011-07-221-20/+22
| | | | | | | | | Several Mesa headers redundantly define the INLINE macro. Adding this guard prevents the compiler from complaining about macro redefinition. Reviewed-by: Brian Paul <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]> Reviewed-by: Chad Versace <[email protected]>
* mesa: add precision to M_PI constantMatt Turner2011-05-061-1/+1
| | | | | | | | Value found in my math.h header. Reviewed-by: Alex Deucher <[email protected]> Signed-off-by: Matt Turner <[email protected]> Signed-off-by: Brian Paul <[email protected]>
* mesa: replace ONE_DIV_LN2 constant with M_LOG2EMatt Turner2011-05-061-4/+0
| | | | | | | | | | | | | 1/ln(2) is equivalent to log2(e), so define it as such. log2(e) = ln(e)/ln(2) = 1/ln(2) Worst of all, the definitions for M_LOG2E and ONE_DIV_LN2 (right beside each other!) weren't the same. Reviewed-by: Alex Deucher <[email protected]> Signed-off-by: Matt Turner <[email protected]> Signed-off-by: Brian Paul <[email protected]>
* mesa: Avoid redefining PUBLIC/USE/likely/unlikely macros.José Fonseca2011-03-251-13/+17
|
* glsl: Use M_LOG2E constant instead of calling log2Ian Romanick2010-12-011-0/+4
|
* mesa: Define C99's __func__ macro on MSVC.José Fonseca2010-09-061-0/+12
|
* mesa: Add __printf__ attribute to printf-like functions to get warnings.Eric Anholt2010-09-011-0/+5
|
* Always define int32_t in compiler headers.Chia-I Wu2010-05-311-3/+1
| | | | eglplatform.h no longer defines int32_t.
* mesa: Optimize get.c by using a table-driven approachKristian Høgsberg2010-05-111-0/+7
|
* Fix unmatched parenthesis introduce by previous commitsIan Romanick2010-03-031-1/+1
| | | | | | | | I wasn't careful enough when removing support for GCC versions earlier than 3.3.0. I could have sworn that I compile tested before pushing, but apparently not. FAIL. Signed-off-by: Ian Romanick <[email protected]>
* Remove support for GCC older than 3.3.0Ian Romanick2010-03-031-6/+4
| | | | Signed-off-by: Ian Romanick <[email protected]>
* mesa: replace questionable CPU_TO_LE32 macro with functionBrian Paul2010-01-201-6/+9
|
* Sun compilers now support some gcc __attribute__ valuesAlan Coopersmith2010-01-191-1/+2
| | | | | | | | | | | Sun cc 5.9 and later (__SUNPRO_C >= 0x590) support __attribute__ calls for aligned, always_inline, noinline, pure, const, and malloc. This commit includes updates to files that were regenerated by gl_XML.py after adding the __SUNPRO_C checks to it Signed-off-by: Alan Coopersmith <[email protected]> Signed-off-by: Brian Paul <[email protected]>
* Merge branch 'mesa_7_6_branch' into mesa_7_7_branchIan Romanick2009-12-161-1/+1
|\ | | | | | | | | | | | | | | Conflicts: src/mesa/drivers/dri/unichrome/via_ioctl.c src/mesa/drivers/dri/unichrome/via_screen.c src/mesa/main/version.h src/mesa/state_tracker/st_atom.c
| * mesa: test for __blrts for CPU_TO_LE32()Brian Paul2009-12-161-1/+1
| | | | | | | | See bug 25663.
* | Merge branch 'mesa_7_6_branch' into mesa_7_7_branchIan Romanick2009-11-301-1/+6
|\| | | | | | | | | | | | | Conflicts: progs/util/shaderutil.c src/mesa/drivers/dri/r600/r600_context.c src/mesa/main/version.h
| * mesa: define 32bit byteswap for AIX.Tom Fogal2009-11-191-1/+6
| | | | | | | | | | | | Fixes `xlib' driver build on AIX. Signed-off-by: Brian Paul <[email protected]>
* | mesa: Fix missing finite symbol error on Windows.José Fonseca2009-09-241-2/+1
|/ | | | | Caused by some weird logic regarding the __WIN32__ define which made the finite definition dependent on the header include order.
* mesa: separate some finite/pragma Watcom stuffBrian Paul2009-07-271-3/+5
|
* mesa: protect Elements against multiple definitionsKeith Whitwell2009-06-181-2/+2
| | | | Mesa and gallium both have a definition of this macro
* Updated CPU_TO_LE32 to work on darwinJeremy Huddleston2009-03-311-1/+4
|
* mesa: move a bunch of compiler-related stuff into new compiler.h headerBrian Paul2009-02-221-0/+479
This trims down and cleans up imports.h and glheader.h quite a bit.