diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-12-20 23:51:08 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-12-20 23:51:08 +0300 |
commit | 1dcb529da1483ef67426236480abe79e5e952ef0 (patch) | |
tree | 72b1454f812025381a12cd9ec15dd7346d87551e /src/localconsts.h | |
parent | 83c4dc85adf03d22b8e7c0ac56abfdaced84edf8 (diff) | |
download | mv-1dcb529da1483ef67426236480abe79e5e952ef0.tar.gz mv-1dcb529da1483ef67426236480abe79e5e952ef0.tar.bz2 mv-1dcb529da1483ef67426236480abe79e5e952ef0.tar.xz mv-1dcb529da1483ef67426236480abe79e5e952ef0.zip |
Add simd function for dye replace color (software).
Diffstat (limited to 'src/localconsts.h')
-rw-r--r-- | src/localconsts.h | 10 |
1 files changed, 10 insertions, 0 deletions
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 |