summaryrefslogtreecommitdiffstats
path: root/src/bfs.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/bfs.h')
-rw-r--r--src/bfs.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/bfs.h b/src/bfs.h
index af4cf9f..6c930ad 100644
--- a/src/bfs.h
+++ b/src/bfs.h
@@ -218,4 +218,15 @@ extern const char bfs_ldlibs[];
# define _target_clones(...)
#endif
+/**
+ * Optimization hint to not unroll a loop.
+ */
+#if __clang__
+# define _nounroll _Pragma("nounroll")
+#elif __GNUC__
+# define _nounroll _Pragma("GCC unroll 0")
+#else
+# define _nounroll
+#endif
+
#endif // BFS_H