projects
/
openvswitch
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e53f0b3
)
New macro ALWAYS_INLINE to tell GCC that a function must be inlined.
author
Ben Pfaff
<blp@nicira.com>
Wed, 28 Jan 2009 18:28:17 +0000
(10:28 -0800)
committer
Ben Pfaff
<blp@nicira.com>
Mon, 2 Mar 2009 20:51:59 +0000
(12:51 -0800)
lib/compiler.h
patch
|
blob
|
history
diff --git
a/lib/compiler.h
b/lib/compiler.h
index c42c6e4e6efea37fc145a0883a34e67c9eba0bbd..b004f6c10b9da7568c768bbc9025b778394b0477 100644
(file)
--- 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)