vlib: improve enqueue_to_next buffer indices extraction
[vpp.git] / src / vppinfra / clib.h
index 05af8fe..7cdf4a4 100644 (file)
 /* 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
@@ -368,6 +369,7 @@ void qsort (void *base, uword n, uword size,
 uword
 clib_backtrace (uword * callers, uword max_callers, uword n_frames_to_skip);
 
+#include <vppinfra/byte_order.h>
 #endif /* included_clib_h */
 
 /*