commit f8d811c81622e7f881258fb2db56e2a591cca6e5
parent 66a6f8e56c8c606ed6dd0f1b91103a9d460430d4
Author: vaplv <vaplv@free.fr>
Date: Sun, 20 May 2018 19:21:59 +0200
Add the SIMD_AVX macro
Diffstat:
1 file changed, 8 insertions(+), 0 deletions(-)
diff --git a/src/rsys.h b/src/rsys.h
@@ -282,10 +282,14 @@ static INLINE DEPRECATED void macro_NCHECK(void) { (void)0; }
#ifdef __SSE4_2__
#define SIMD_SSE4_2
#endif
+ #ifdef __AVX__
+ #define SIMD_AVX
+ #endif
#elif defined(COMPILER_CL)
#ifdef ARCH_64BITS
#define SIMD_SSE
#define SIMD_SSE2
+
#else /* 32-bits */
#if _M_IX86_FP >= 1
#define SIMD_SSE
@@ -294,6 +298,10 @@ static INLINE DEPRECATED void macro_NCHECK(void) { (void)0; }
#define SIMD_SSE2
#endif
#endif
+
+ #ifdef __AVX__
+ #define SIMD_AVX
+ #endif
#endif
/*******************************************************************************