From 1dcb529da1483ef67426236480abe79e5e952ef0 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 20 Dec 2016 23:51:08 +0300 Subject: Add simd function for dye replace color (software). --- src/localconsts.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/localconsts.h') diff --git a/src/localconsts.h b/src/localconsts.h index 00108b5eb..2d2b2d548 100644 --- a/src/localconsts.h +++ b/src/localconsts.h @@ -138,6 +138,16 @@ #define A_INLINE __attribute__ ((always_inline)) #endif // ENABLE_CILKPLUS +#ifdef __x86_64__ +#define SIMD_SUPPORTED +#endif // __x86_64__ + +#ifdef SIMD_SUPPORTED +#define FUNCTION_SIMD_DEFAULT __attribute__ ((target ("default"))) +#else // SIMD_SUPPORTED +#define FUNCTION_SIMD_DEFAULT +#endif // SIMD_SUPPORTED + #ifdef __INTEL_COMPILER #define RETURNS_NONNULL #else // __INTEL_COMPILER -- cgit v1.2.3-60-g2f50