From: Ben Pfaff Date: Wed, 28 Jan 2009 18:28:17 +0000 (-0800) Subject: New macro ALWAYS_INLINE to tell GCC that a function must be inlined. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=985b0acc9c3715d96c4da58896fb6217373b47ce;p=openvswitch New macro ALWAYS_INLINE to tell GCC that a function must be inlined. --- 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)