summaryrefslogtreecommitdiff
path: root/src/misc/macros.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/misc/macros.hpp')
-rw-r--r--src/misc/macros.hpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/misc/macros.hpp b/src/misc/macros.hpp
new file mode 100644
index 0000000..02f5048
--- /dev/null
+++ b/src/misc/macros.hpp
@@ -0,0 +1,4 @@
+#pragma once
+
+#define UNLIKELY(expr) (expr) [[unlikely]]
+#define LIKELY(expr) (expr) [[likely]]