version 0.0.1
This commit is contained in:
14
test/libdpdk_dummy/include/rte_common.h
Normal file
14
test/libdpdk_dummy/include/rte_common.h
Normal file
@@ -0,0 +1,14 @@
|
||||
#pragma once
|
||||
|
||||
#define RTE_MIN(a, b) \
|
||||
__extension__({ \
|
||||
typeof(a) _a = (a); \
|
||||
typeof(b) _b = (b); \
|
||||
_a < _b ? _a : _b; \
|
||||
})
|
||||
|
||||
#if !defined(__STDC_VERSION__) || __STDC_VERSION__ < 201112L
|
||||
#define RTE_STD_C11 __extension__
|
||||
#else
|
||||
#define RTE_STD_C11
|
||||
#endif
|
||||
Reference in New Issue
Block a user