From b9acfef337bdfc0e9d8575e19eb53c8e68b92c48 Mon Sep 17 00:00:00 2001
From: Tapani Pälli <tapani.palli@intel.com>
Date: Tue, 26 Feb 2019 12:51:07 +0200
Subject: util: fix a warning when building against clang7 headers
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

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 | 2 ++
 1 file changed, 2 insertions(+)

(limited to 'src')

diff --git a/src/util/u_math.c b/src/util/u_math.c
index c58af911be7..63511554bf4 100644
--- a/src/util/u_math.c
+++ b/src/util/u_math.c
@@ -35,8 +35,10 @@
 #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) */
-- 
cgit v1.2.3