Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
| inline |
side by side
vppinfra: add COMPILE_TIME_CONST() macro
[vpp.git]
/
src
/
vppinfra
/
clib.h
diff --git
a/src/vppinfra/clib.h
b/src/vppinfra/clib.h
index
05af8fe
..
4629a7d
100644
(file)
--- a/
src/vppinfra/clib.h
+++ b/
src/vppinfra/clib.h
@@
-120,6
+120,7
@@
/* Hints to compiler about hot/cold code. */
#define PREDICT_FALSE(x) __builtin_expect((x),0)
#define PREDICT_TRUE(x) __builtin_expect((x),1)
+#define COMPILE_TIME_CONST(x) __builtin_constant_p (x)
/*
* Compiler barrier