summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/imports.h
Commit message (Collapse)AuthorAgeFilesLines
* mesa: Avoid undeclared ffs function warning on mingw.José Fonseca2011-02-221-0/+6
|
* i965: Use compiler builtins when availableChris Wilson2011-02-211-0/+13
| | | | Signed-off-by: Chris Wilson <[email protected]>
* mesa: Add definitions for inverse hyperbolic function on MSVC.Vinson Lee2010-11-151-0/+3
|
* mesa: add more work-arounds for acoshf(), asinhf(), atahf()Brian Paul2010-11-151-0/+3
|
* Drop GLcontext typedef and use struct gl_context insteadKristian Høgsberg2010-10-131-5/+5
|
* Get rid of GL/internal/glcore.hKristian Høgsberg2010-10-131-4/+6
| | | | | | | __GLcontextModes is always only used as an implementation internal struct at this point and we shouldn't install glcore.h anymore. Anything that needs __GLcontextModes should just include the struct in its headers files directly.
* mesa: Add __printf__ attribute to printf-like functions to get warnings.Eric Anholt2010-09-011-5/+5
|
* glsl/mesa: fixes for MSVCAras Pranckevicius2010-08-251-0/+1
| | | | Signed-off-by: Brian Paul <[email protected]>
* mesa: added isblank() for MSVCBrian Paul2010-08-241-0/+1
|
* glsl2: Include imports.h to get snprintf wrapper for MSVCIan Romanick2010-08-231-0/+6
| | | | Signed-off-by: José Fonseca <[email protected]>
* mesa: Fix msvc build of glsl.Aras Pranckevicius2010-08-231-2/+7
| | | | Signed-off-by: José Fonseca <[email protected]>
* mesa: Check that _XOPEN_SOURCE is defined before using it.Vinson Lee2010-08-151-1/+1
|
* mesa: Recent versions of MSVC define the single precision functions already.José Fonseca2010-08-141-1/+2
|
* mesa: atan2f and powf need two args.José Fonseca2010-08-141-2/+2
|
* mesa: Work-arounds for platforms that lack C99 math functionsIan Romanick2010-08-131-0/+28
|
* mesa: Move [UN]CLAMPED_FLOAT_TO_UBYTE from imports.h to macros.h.Vinson Lee2010-07-091-36/+0
| | | | The other similar integer/float conversion macros are in macros.h.
* mesa: Remove no-op wrappers around trig functions.Eric Anholt2010-05-131-15/+0
|
* mesa: Remove _mesa_pow(), which is always just pow().Eric Anholt2010-05-131-3/+0
|
* mesa: Fix build with gcc 3.3.Matthieu Herrb2010-04-191-2/+4
| | | | Signed-off-by: Brian Paul <[email protected]>
* Replace _mesa_strtod with _mesa_strtof.Marcin Baczyński2010-03-151-2/+2
| | | | Reviewed-by: Ian Romanick <[email protected]>
* Remove support for GCC older than 3.3.0Ian Romanick2010-03-031-3/+1
| | | | Signed-off-by: Ian Romanick <[email protected]>
* mesa: restore _mesa_snprintf() - it's needed for WindowsBrian Paul2010-02-191-0/+3
| | | | This reverts part of commit 298be2b028263b2c343a707662c6fbfa18293cb2
* Drop macro wrappers for the aligned memory functionsKristian Høgsberg2010-02-191-11/+0
|
* Replace the _mesa_*printf() wrappers with the plain libc versionsKristian Høgsberg2010-02-191-16/+0
|
* Replace _mesa_malloc, _mesa_calloc and _mesa_free with plain libc versionsKristian Høgsberg2010-02-191-14/+5
|
* mesa: replace _mesa_bzero() with memset()Brian Paul2010-02-191-3/+0
|
* mesa: replace old MEMSET macro with memsetBrian Paul2010-02-191-3/+0
|
* mesa: replace old MEMCPY macro with memcpyBrian Paul2010-02-191-2/+0
|
* Remove _mesa_memcmp in favor of plain memcmp.Kenneth Graunke2010-02-191-3/+0
| | | | This may break the SUNOS4 build, but it's no longer relevant.
* Remove _mesa_memset in favor of plain memset.Kenneth Graunke2010-02-191-4/+1
| | | | This may break the SUNOS4 build, but it's no longer relevant.
* Remove _mesa_memcpy in favor of plain memcpy.Kenneth Graunke2010-02-191-4/+1
| | | | This may break the SUNOS4 build, but it's no longer relevant.
* Remove _mesa_atoi in favor of plain atoi.Kenneth Graunke2010-02-191-3/+0
|
* Remove _mesa_strncmp in favor of plain strncmp.Kenneth Graunke2010-02-191-3/+0
|
* Remove _mesa_strcmp in favor of plain strcmp.Kenneth Graunke2010-02-191-3/+0
|
* Remove _mesa_strlen in favor of plain strlen.Kenneth Graunke2010-02-191-3/+0
|
* Remove _mesa_strncpy in favor of plain strncpy.Kenneth Graunke2010-02-191-3/+0
|
* Remove _mesa_strcpy in favor of plain strcpy.Kenneth Graunke2010-02-191-3/+0
|
* Remove _mesa_strncat in favor of plain strncat.Kenneth Graunke2010-02-191-3/+0
|
* Remove _mesa_strstr in favor of plain strstr.Kenneth Graunke2010-02-191-3/+0
|
* mesa: Don't pass paramter to __builtin_clz which would hve undefined result.Pauli Nieminen2010-02-141-5/+11
| | | | | | | | | __builtin_clz with parameter 0 has undefined value. When using -O3 optimizing this would result to too large next power of two value. Fix is to check if passed value is 1 and modify formula for that case.
* mesa: Fix mesa_next_pow_two to return same value if parameter is pow2.Pauli Nieminen2010-02-071-3/+5
| | | | | Without subtracting one pow2 value would be rounded up to next pow2 which is not correct behaviour for the function.
* mesa/main: Add function to find next higher power of two.Pauli Nieminen2010-02-061-0/+46
| | | | | | | | | With gcc implementation uses __builtin_clr which counts number of leading zeros. Fallback implementation uses bit manipulation. First it duplicates the highest bit to all lower bits and then adds one to get the power of two number.
* mesa: Remove _mesa_exit wrapper for exit().Eric Anholt2009-12-221-4/+0
| | | | | It does nothing else while being less useful than exit() because it lacks attributes that real exit() has.
* ARB sync: Add infrastructure for glGetInteger64vIan Romanick2009-09-031-0/+1
|
* mesa: added _mesa_str_checksum()Brian Paul2009-08-041-0/+3
|
* mesa: Sparc's IROUND() optimization is invalid.David Miller2009-02-281-9/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We can't use the "fstoi" instruction like this. Unlike other floating point instructions, "fstoi" always rounds towards zero no matter what rounding mode the FPU has been set to. This was validated using the following test program: -------------------- static inline int iround(float f) { int r; __asm__ ("fstoi %1, %0" : "=f" (r) : "f" (f)); return r; } #define IROUND(x) iround(x) #define IROUND_REF(f) ((int) (((f) >= 0.0F) ? ((f) + 0.5F) : ((f) - 0.5F))) int main(void) { float f = -2.0; while (f < 3.0f) { int sparc_val = IROUND(f); int ref_val = IROUND_REF(f); if (sparc_val != ref_val) printf("DIFFERENT[%f]: REF==%d SPARC==%d\n", f, ref_val, sparc_val); f += 0.1f; } return 0; } -------------------- which prints out things like: -------------------- DIFFERENT[-1.900000]: REF==-2 SPARC==-1 DIFFERENT[-1.800000]: REF==-2 SPARC==-1 DIFFERENT[-1.700000]: REF==-2 SPARC==-1 DIFFERENT[-1.600000]: REF==-2 SPARC==-1 DIFFERENT[-1.000000]: REF==-1 SPARC==0 DIFFERENT[-0.900000]: REF==-1 SPARC==0 DIFFERENT[-0.800000]: REF==-1 SPARC==0 DIFFERENT[-0.700000]: REF==-1 SPARC==0 DIFFERENT[-0.600000]: REF==-1 SPARC==0 DIFFERENT[0.500000]: REF==1 SPARC==0 DIFFERENT[0.600000]: REF==1 SPARC==0 ... -------------------- So we have to remove Sparc's IROUND() definition, it's wrong. Signed-off-by: David S. Miller <[email protected]>
* mesa: fixes for building on HaikuTomas Wilhelmsson2009-02-231-1/+2
|
* mesa: move a bunch of compiler-related stuff into new compiler.h headerBrian Paul2009-02-221-169/+2
| | | | This trims down and cleans up imports.h and glheader.h quite a bit.
* mesa: merge gallium-0.2 into gallium-master-mergeBrian Paul2009-02-091-6/+2
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Merge commit 'origin/gallium-0.2' into gallium-master-merge Conflicts: Makefile docs/relnotes-7.4.html docs/relnotes.html src/mesa/drivers/dri/i965/brw_wm.h src/mesa/main/imports.c src/mesa/main/mtypes.h src/mesa/main/texcompress.c src/mesa/main/texenvprogram.c src/mesa/main/version.h src/mesa/vbo/vbo_exec_api.c src/mesa/vbo/vbo_save_draw.c
| * mesa: Add _mesa_snprintf.José Fonseca2009-01-081-0/+3
| | | | | | | | On Windows snprintf is renamed as _snprintf.