summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordzaima <dzaimagit@gmail.com>2024-02-13 22:41:14 +0200
committerdzaima <dzaimagit@gmail.com>2024-02-13 22:41:14 +0200
commit09cb2aa5f8b41d82b2c0ac8dcb68bc7244c8835e (patch)
treeabb3b44284164783f4ac6f8dcde2709a8c3a7c5f
parent1318026c4eb054c146ad64e84af01f2ccd9ef719 (diff)
gcc 14 should have "#pragma GCC novector"
-rw-r--r--src/h.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/h.h b/src/h.h
index c975e660..fa96059f 100644
--- a/src/h.h
+++ b/src/h.h
@@ -128,7 +128,11 @@ typedef size_t ux;
#define EXACTLY_GCC 1
#define NOUNROLL _Pragma("GCC unroll 1")
#define vfor _Pragma("GCC ivdep") for
- #define NOVECTORIZE
+ #if __GNUC__ >= 14
+ #define NOVECTORIZE _Pragma("GCC novector")
+ #else
+ #define NOVECTORIZE
+ #endif
#else
#define NOUNROLL
#define NOVECTORIZE