20 #include <rte_compat.h>
96 #ifndef RTE_WAIT_UNTIL_EQUAL_ARCH_DEFINED
101 assert(memorder == __ATOMIC_ACQUIRE || memorder == __ATOMIC_RELAXED);
103 while (__atomic_load_n(addr, memorder) != expected)
111 assert(memorder == __ATOMIC_ACQUIRE || memorder == __ATOMIC_RELAXED);
113 while (__atomic_load_n(addr, memorder) != expected)
121 assert(memorder == __ATOMIC_ACQUIRE || memorder == __ATOMIC_RELAXED);
123 while (__atomic_load_n(addr, memorder) != expected)
static __rte_experimental __rte_always_inline void rte_wait_until_equal_64(volatile uint64_t *addr, uint64_t expected, int memorder)
#define __rte_always_inline
static void rte_pause(void)
static __rte_experimental __rte_always_inline void rte_wait_until_equal_16(volatile uint16_t *addr, uint16_t expected, int memorder)
static __rte_experimental __rte_always_inline void rte_wait_until_equal_32(volatile uint32_t *addr, uint32_t expected, int memorder)