git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
eal/windows: remove useless C++ include guard
[dpdk.git]
/
lib
/
eal
/
include
/
rte_common.h
diff --git
a/lib/eal/include/rte_common.h
b/lib/eal/include/rte_common.h
index
99eb5f1
..
4a399cc
100644
(file)
--- a/
lib/eal/include/rte_common.h
+++ b/
lib/eal/include/rte_common.h
@@
-778,6
+778,14
@@
rte_log2_u64(uint64_t v)
})
#endif
+/** Swap two variables. */
+#define RTE_SWAP(a, b) \
+ __extension__ ({ \
+ typeof (a) _a = a; \
+ a = b; \
+ b = _a; \
+ })
+
/**
* Get the size of a field in a structure.
*