util: fix a warning when building against clang7 headers
authorTapani Pälli <tapani.palli@intel.com>
Tue, 26 Feb 2019 10:51:07 +0000 (12:51 +0200)
committerTapani Pälli <tapani.palli@intel.com>
Wed, 27 Feb 2019 06:57:41 +0000 (08:57 +0200)
Header xmmintrin.h conditionally includes emmintrin.h that defines
_MM_DENORMALS_ZERO_MASK, add ifndef to fix this warning.

Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
src/util/u_math.c

index c58af911be7400b043c7a3d38a94eaadfacb5e2a..63511554bf4641b7f55360ed3c2a76e3d4b07585 100644 (file)
 #include <xmmintrin.h>
 /* This is defined in pmmintrin.h, but it can only be included when -msse3 is
  * used, so just define it here to avoid further. */
+#ifndef _MM_DENORMALS_ZERO_MASK
 #define _MM_DENORMALS_ZERO_MASK        0x0040
 #endif
+#endif
 
 
 /** 2^x, for x in [-1.0, 1.0) */