From f65ade90cc95d3b16a3db4e031a5e6f011aff161 Mon Sep 17 00:00:00 2001 From: caand Date: Sun, 2 Apr 2017 11:00:21 +0200 Subject: Fix for llvm llvm defines __GNUC__ but has slightly different needs from gcc --- NEON_2_SSE.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/NEON_2_SSE.h b/NEON_2_SSE.h index 3925772..14a6044 100644 --- a/NEON_2_SSE.h +++ b/NEON_2_SSE.h @@ -2251,7 +2251,7 @@ poly16x8x2_t vuzpq_p16(poly16x8_t a, poly16x8_t b); // VUZP.16 q0,q0 // the following macros solve the problem of the "immediate parameters requirement" for some x86 intrinsics. // we need it to compile the code unless the "Intrinsic parameter must be an immediate value" error is our goal // -#if ( ((defined(_MSC_VER)|| defined (__INTEL_COMPILER)) && defined DEBUG ) || defined(__GNUC__) ) +#if ( ((defined(_MSC_VER)|| defined (__INTEL_COMPILER)) && defined DEBUG ) || defined(__GNUC__) && !defined(__llvm__) ) #define _MM_ALIGNR_EPI8 _mm_alignr_epi8 -- cgit v1.2.3