47 lines
1.6 KiB
Diff
47 lines
1.6 KiB
Diff
|
|
diff --git a/lib/eal/include/rte_bitops.h b/lib/eal/include/rte_bitops.h
|
||
|
|
index deb1fd43f2..0f63ebe1d5 100644
|
||
|
|
--- a/lib/eal/include/rte_bitops.h
|
||
|
|
+++ b/lib/eal/include/rte_bitops.h
|
||
|
|
@@ -525,10 +525,12 @@ __rte_bit_ ## variant ## flip ## size(qualifier uint ## size ## _t *addr, unsign
|
||
|
|
__RTE_GEN_BIT_OPS(,, size) \
|
||
|
|
__RTE_GEN_BIT_OPS(v_, volatile, size)
|
||
|
|
|
||
|
|
+#ifndef __cplusplus
|
||
|
|
#ifdef ALLOW_EXPERIMENTAL_API
|
||
|
|
__RTE_GEN_BIT_OPS_SIZE(32)
|
||
|
|
__RTE_GEN_BIT_OPS_SIZE(64)
|
||
|
|
#endif
|
||
|
|
+#endif
|
||
|
|
|
||
|
|
#define __RTE_GEN_BIT_ATOMIC_TEST(variant, qualifier, size) \
|
||
|
|
__rte_experimental \
|
||
|
|
@@ -653,10 +655,12 @@ __rte_bit_atomic_ ## variant ## test_and_assign ## size( \
|
||
|
|
__RTE_GEN_BIT_ATOMIC_OPS(,, size) \
|
||
|
|
__RTE_GEN_BIT_ATOMIC_OPS(v_, volatile, size)
|
||
|
|
|
||
|
|
+#ifndef __cplusplus
|
||
|
|
#ifdef ALLOW_EXPERIMENTAL_API
|
||
|
|
__RTE_GEN_BIT_ATOMIC_OPS_SIZE(32)
|
||
|
|
__RTE_GEN_BIT_ATOMIC_OPS_SIZE(64)
|
||
|
|
#endif
|
||
|
|
+#endif
|
||
|
|
|
||
|
|
/*------------------------ 32-bit relaxed operations ------------------------*/
|
||
|
|
|
||
|
|
@@ -1485,6 +1489,7 @@ rte_bit_ ## family ## fun(qualifier uint ## size ## _t *addr, arg1_type arg1_nam
|
||
|
|
__RTE_BIT_OVERLOAD_SZ_4R(family, fun, qualifier, 64, ret_type, arg1_type, arg1_name, \
|
||
|
|
arg2_type, arg2_name, arg3_type, arg3_name)
|
||
|
|
|
||
|
|
+#ifndef __cplusplus
|
||
|
|
#ifdef ALLOW_EXPERIMENTAL_API
|
||
|
|
__RTE_BIT_OVERLOAD_2R(, test, const, bool, unsigned int, nr)
|
||
|
|
__RTE_BIT_OVERLOAD_2(, set,, unsigned int, nr)
|
||
|
|
@@ -1502,6 +1507,7 @@ __RTE_BIT_OVERLOAD_3R(atomic_, test_and_clear,, bool, unsigned int, nr, int, mem
|
||
|
|
__RTE_BIT_OVERLOAD_4R(atomic_, test_and_assign,, bool, unsigned int, nr, bool, value,
|
||
|
|
int, memory_order)
|
||
|
|
#endif
|
||
|
|
+#endif
|
||
|
|
|
||
|
|
#endif
|
||
|
|
|