]> mj.ucw.cz Git - libucw.git/commitdiff
Added ALWAYS_INLINE.
authorMartin Mares <mj@ucw.cz>
Wed, 13 Sep 2006 18:03:34 +0000 (20:03 +0200)
committerMartin Mares <mj@ucw.cz>
Wed, 13 Sep 2006 18:03:34 +0000 (20:03 +0200)
lib/lib.h

index b20ba7e9b284a0aa9d0815a66af71caf803fb87b..84f9110c06fc934b81313f33d99252bcd127a4dd 100644 (file)
--- a/lib/lib.h
+++ b/lib/lib.h
 #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))