summaryrefslogtreecommitdiff
path: root/src/localconsts.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/localconsts.h')
-rw-r--r--src/localconsts.h10
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