]> git.droids-corp.org - dpdk.git/blobdiff - lib/librte_eal/common/include/rte_common.h
eal: introduce macro for always inline
[dpdk.git] / lib / librte_eal / common / include / rte_common.h
index e057f6e2135575b9ebe1785d33f0137ed74c0d54..a9a749488bcb310154d2a8708a9ce71638e4db6e 100644 (file)
@@ -102,6 +102,11 @@ typedef uint16_t unaligned_uint16_t;
  */
 #define RTE_SET_USED(x) (void)(x)
 
+/**
+ * Force a function to be inlined
+ */
+#define __rte_always_inline inline __attribute__((always_inline))
+
 /*********** Macros for pointer arithmetic ********/
 
 /**