projects
/
openvswitch
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
381328f
)
compiler: Remove "likely" and "unlikely" macros, since we don't use them.
author
Ben Pfaff
<blp@nicira.com>
Thu, 11 Feb 2010 19:37:30 +0000
(11:37 -0800)
committer
Ben Pfaff
<blp@nicira.com>
Fri, 12 Feb 2010 21:56:15 +0000
(13:56 -0800)
(The datapath uses these macros, but those come from Linux's kernel.h, not
from this file.)
lib/compiler.h
patch
|
blob
|
history
diff --git
a/lib/compiler.h
b/lib/compiler.h
index 502a48cd16c0e39693db32a5bec87a9cf99247b3..ac1cd0fcb560e3378797cbeffa561e02b32cc3cf 100644
(file)
--- a/
lib/compiler.h
+++ b/
lib/compiler.h
@@
-23,7
+23,5
@@
#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)
#endif /* compiler.h */