From: Martin Mares Date: Wed, 13 Sep 2006 18:03:34 +0000 (+0200) Subject: Added ALWAYS_INLINE. X-Git-Tag: holmes-import~512^2~8 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=d865e970bb18d8ef2264a7a694071e5c9e33ad1b;p=libucw.git Added ALWAYS_INLINE. --- diff --git a/lib/lib.h b/lib/lib.h index b20ba7e9..84f9110c 100644 --- a/lib/lib.h +++ b/lib/lib.h @@ -65,6 +65,12 @@ #define likely(x) __builtin_expect((x),1) #define unlikely(x) __builtin_expect((x),0) +#if __GNUC__ >= 4 || __GNUC__ == 3 && __GNUC_MINOR__ >= 3 +#define ALWAYS_INLINE inline __attribute__((always_inline)) +#else +#define ALWAYS_INLINE inline +#endif + #if __GNUC__ >= 4 #define LIKE_MALLOC __attribute__((malloc)) #define SENTINEL_CHECK __attribute__((sentinel))