[PATCH v2 5/5] eal: extend bitops to handle volatile pointers

Morten Brørup mb at smartsharesystems.com
Fri Aug 9 13:48:07 CEST 2024


> +#define rte_bit_test(addr, nr)						\
> +	_Generic((addr),						\
> +		 uint32_t *: __rte_bit_test32,				\
> +		 const uint32_t *: __rte_bit_test32,			\
> +		 volatile uint32_t *: __rte_bit_v_test32,		\
> +		 const volatile uint32_t *: __rte_bit_v_test32,		\

I had to read up on "const volatile *", and it checks out.

Acked-by: Morten Brørup <mb at smartsharesystems.com>



More information about the dev mailing list