diff options
author | Tapani Pälli <[email protected]> | 2019-02-26 12:51:07 +0200 |
---|---|---|
committer | Tapani Pälli <[email protected]> | 2019-02-27 08:57:41 +0200 |
commit | b9acfef337bdfc0e9d8575e19eb53c8e68b92c48 (patch) | |
tree | f2c047ad0a23b5245ba1cd0f3da56ba49b2a1b51 /src/util/u_math.c | |
parent | d1af8115f828fbebcf1201a077e2a93d233ce0e0 (diff) |
util: fix a warning when building against clang7 headers
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 <[email protected]>
Reviewed-by: Jordan Justen <[email protected]>
Diffstat (limited to 'src/util/u_math.c')
-rw-r--r-- | src/util/u_math.c | 2 |
1 files changed, 2 insertions, 0 deletions
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) */ |