rcx

library of miscellaneous bits of C code
git clone git://git.rr3.xyz/rcx
Log | Files | Refs | README | LICENSE

commit cb6d26f99634fdc14f69290877e73f937e87d171
parent bd81806d6b29848da7478def0afd7758608a5a9b
Author: Robert Russell <robertrussell.72001@gmail.com>
Date:   Thu, 23 Feb 2023 23:17:27 -0800

Add NOINLINE macro

Diffstat:
Minc/def.h | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/inc/def.h b/inc/def.h @@ -18,10 +18,12 @@ #define MAX(a,b) ((a) > (b) ? (a) : (b)) #ifdef __GNUC__ +#define NOINLINE __attribute__((noinline)) #define UNUSED __attribute__((unused)) #define likely(x) __builtin_expect((x), 1) #define unlikely(x) __builtin_expect((x), 0) #else +#define NOINLINE #define UNUSED #define likely(x) (x) #define unlikely(x) (x)