From 1426b1524be08cf234f18c2e5ef72b724a297fc2 Mon Sep 17 00:00:00 2001 From: Torrie Fischer Date: Sun, 19 Feb 2023 18:40:37 +0100 Subject: [PATCH] figments: figment: add F_LIKELY, F_UNLIKELY macros --- lib/Figments/Figment.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/Figments/Figment.h b/lib/Figments/Figment.h index c19734a..3f237dd 100644 --- a/lib/Figments/Figment.h +++ b/lib/Figments/Figment.h @@ -3,6 +3,9 @@ #include #include +#define F_LIKELY(x) __builtin_expect(!!(x), true) +#define F_UNLIKELY(x) __builtin_expect(!!(x), false) + class Display; class InputEvent; class InputSource;