summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2024-06-06 18:55:48 +0200
committerStanislaw Halik <sthalik@misaki.pl>2024-06-06 19:03:33 +0200
commita20105cd47483fa2e1d769429dd7d09114a9d586 (patch)
tree873f0700dccb74b6442c2e9f077ab04350682533
parentbb9857892d514c8906dbcde101117caf1922776b (diff)
add #define for disabling loop unrolling
-rw-r--r--compat/defs.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/compat/defs.hpp b/compat/defs.hpp
index cfb57860..96aee0f7 100644
--- a/compat/defs.hpp
+++ b/compat/defs.hpp
@@ -65,6 +65,7 @@
#endif
#ifdef _MSC_VER
+#define fm_UNROLL_disable
#define fm_UNROLL _Pragma("loop(ivdep)")
#define fm_UNROLL_4 fm_UNROLL
#define fm_UNROLL_8 fm_UNROLL
@@ -73,6 +74,7 @@
#ifndef __SIZEOF_POINTER__
#error "missing __SIZEOF_POINTER__"
#endif
+#define fm_UNROLL_disable _Pragma("GCC unroll 1")
#define fm_UNROLL_4 _Pragma("GCC unroll 4")
#define fm_UNROLL_8 _Pragma("GCC unroll 8")
#if __SIZEOF_POINTER__ > 4