commit 86aca85103ccc3731d3eef7155649b062a7e318b
parent e1741dc2223334fcfe7bbfda240fe106d8c64a0a
Author: vaplv <vaplv@free.fr>
Date: Mon, 1 Feb 2021 15:21:08 +0100
Add the FMADD macro defining wether FMA is available or not
Diffstat:
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/src/rsys.h b/src/rsys.h
@@ -263,7 +263,7 @@ static INLINE DEPRECATED void macro_NCHECK(void) { (void)0; }
for((Id) = (Start); (Id) > (End); --(Id))
/*******************************************************************************
- * SIMD instruction sets
+ * Instruction sets
******************************************************************************/
#if defined(COMPILER_GCC)
#ifdef __SSE__
@@ -287,6 +287,9 @@ static INLINE DEPRECATED void macro_NCHECK(void) { (void)0; }
#ifdef __AVX__
#define SIMD_AVX
#endif
+ #ifdef __FMA__
+ #define FMADD
+ #endif
#elif defined(COMPILER_CL)
#ifdef ARCH_64BITS
#define SIMD_SSE