nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at devShellTools-shell 46 lines 1.6 kB view raw
1diff --git a/lib/eal/include/rte_bitops.h b/lib/eal/include/rte_bitops.h 2index deb1fd43f2..0f63ebe1d5 100644 3--- a/lib/eal/include/rte_bitops.h 4+++ b/lib/eal/include/rte_bitops.h 5@@ -525,10 +525,12 @@ __rte_bit_ ## variant ## flip ## size(qualifier uint ## size ## _t *addr, unsign 6 __RTE_GEN_BIT_OPS(,, size) \ 7 __RTE_GEN_BIT_OPS(v_, volatile, size) 8 9+#ifndef __cplusplus 10 #ifdef ALLOW_EXPERIMENTAL_API 11 __RTE_GEN_BIT_OPS_SIZE(32) 12 __RTE_GEN_BIT_OPS_SIZE(64) 13 #endif 14+#endif 15 16 #define __RTE_GEN_BIT_ATOMIC_TEST(variant, qualifier, size) \ 17 __rte_experimental \ 18@@ -653,10 +655,12 @@ __rte_bit_atomic_ ## variant ## test_and_assign ## size( \ 19 __RTE_GEN_BIT_ATOMIC_OPS(,, size) \ 20 __RTE_GEN_BIT_ATOMIC_OPS(v_, volatile, size) 21 22+#ifndef __cplusplus 23 #ifdef ALLOW_EXPERIMENTAL_API 24 __RTE_GEN_BIT_ATOMIC_OPS_SIZE(32) 25 __RTE_GEN_BIT_ATOMIC_OPS_SIZE(64) 26 #endif 27+#endif 28 29 /*------------------------ 32-bit relaxed operations ------------------------*/ 30 31@@ -1485,6 +1489,7 @@ rte_bit_ ## family ## fun(qualifier uint ## size ## _t *addr, arg1_type arg1_nam 32 __RTE_BIT_OVERLOAD_SZ_4R(family, fun, qualifier, 64, ret_type, arg1_type, arg1_name, \ 33 arg2_type, arg2_name, arg3_type, arg3_name) 34 35+#ifndef __cplusplus 36 #ifdef ALLOW_EXPERIMENTAL_API 37 __RTE_BIT_OVERLOAD_2R(, test, const, bool, unsigned int, nr) 38 __RTE_BIT_OVERLOAD_2(, set,, unsigned int, nr) 39@@ -1502,6 +1507,7 @@ __RTE_BIT_OVERLOAD_3R(atomic_, test_and_clear,, bool, unsigned int, nr, int, mem 40 __RTE_BIT_OVERLOAD_4R(atomic_, test_and_assign,, bool, unsigned int, nr, bool, value, 41 int, memory_order) 42 #endif 43+#endif 44 45 #endif 46