From 985b0acc9c3715d96c4da58896fb6217373b47ce Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Wed, 28 Jan 2009 10:28:17 -0800 Subject: [PATCH] New macro ALWAYS_INLINE to tell GCC that a function must be inlined. --- lib/compiler.h | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/compiler.h b/lib/compiler.h index c42c6e4e..b004f6c1 100644 --- a/lib/compiler.h +++ b/lib/compiler.h @@ -40,6 +40,7 @@ #define PRINTF_FORMAT(FMT, ARG1) __attribute__((__format__(printf, FMT, ARG1))) #define STRFTIME_FORMAT(FMT) __attribute__((__format__(__strftime__, FMT, 0))) #define MALLOC_LIKE __attribute__((__malloc__)) +#define ALWAYS_INLINE __attribute__((always_inline)) #define likely(x) __builtin_expect((x),1) #define unlikely(x) __builtin_expect((x),0) -- 2.30.2