Thu Mar 5 01:57:11 2015 UTC ()
lint and pcc don't have xmmintrin.h


(christos)
diff -r1.2 -r1.3 xsrc/external/mit/MesaLib/dist/src/mesa/main/imports.h

cvs diff -r1.2 -r1.3 xsrc/external/mit/MesaLib/dist/src/mesa/main/Attic/imports.h (expand / switch to unified diff)

--- xsrc/external/mit/MesaLib/dist/src/mesa/main/Attic/imports.h 2015/03/03 21:32:27 1.2
+++ xsrc/external/mit/MesaLib/dist/src/mesa/main/Attic/imports.h 2015/03/05 01:57:11 1.3
@@ -249,27 +249,27 @@ static inline GLint64 IROUND64(float f) @@ -249,27 +249,27 @@ static inline GLint64 IROUND64(float f)
249 return (GLint64) ((f >= 0.0F) ? (f + 0.5F) : (f - 0.5F)); 249 return (GLint64) ((f >= 0.0F) ? (f + 0.5F) : (f - 0.5F));
250} 250}
251 251
252 252
253/** 253/**
254 * Convert positive float to int by rounding to nearest integer. 254 * Convert positive float to int by rounding to nearest integer.
255 */ 255 */
256static inline int IROUND_POS(float f) 256static inline int IROUND_POS(float f)
257{ 257{
258 assert(f >= 0.0F); 258 assert(f >= 0.0F);
259 return (int) (f + 0.5F); 259 return (int) (f + 0.5F);
260} 260}
261 261
262#ifdef __GNUC__ 262#if !defined(__lint__) && !defined(__PCC__)
263#ifdef __x86_64__ 263#ifdef __x86_64__
264# include <xmmintrin.h> 264# include <xmmintrin.h>
265#endif 265#endif
266#endif 266#endif
267 267
268/** 268/**
269 * Convert float to int using a fast method. The rounding mode may vary. 269 * Convert float to int using a fast method. The rounding mode may vary.
270 */ 270 */
271static inline int F_TO_I(float f) 271static inline int F_TO_I(float f)
272{ 272{
273#if defined(USE_X86_ASM) && defined(__GNUC__) && defined(__i386__) 273#if defined(USE_X86_ASM) && defined(__GNUC__) && defined(__i386__)
274 int r; 274 int r;
275 __asm__ ("fistpl %0" : "=m" (r) : "t" (f) : "st"); 275 __asm__ ("fistpl %0" : "=m" (r) : "t" (f) : "st");