commit 2aee99583589e1bbc9133b45b039ae038bd35a68 parent 3a47f74edfd2abbca29afdbc06ac6e06ab07199a Author: Brian Swetland <swetland@frotz.net> Date: Wed, 11 May 2022 23:26:45 -0700 compiler.h: for compiler specific macros and such Diffstat:
A | hw/inc/compiler.h | | | 5 | +++++ |
1 file changed, 5 insertions(+), 0 deletions(-)
diff --git a/hw/inc/compiler.h b/hw/inc/compiler.h @@ -0,0 +1,5 @@ + +#pragma once + +#define unlikely(expr) __builtin_expect(!!(expr), 0) +#define likely(expr) __builtin_expect(!!(expr), 1)