MCPcopy Create free account
hub / github.com/F-Stack/f-stack / rte_atomic32_dec_and_test

Function rte_atomic32_dec_and_test

dpdk/lib/eal/ppc/include/rte_atomic.h:119–122  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

117}
118
119static inline int rte_atomic32_dec_and_test(rte_atomic32_t *v)
120{
121 return rte_atomic_fetch_sub_explicit(&v->cnt, 1, rte_memory_order_acquire) - 1 == 0;
122}
123
124static inline uint32_t
125rte_atomic32_exchange(volatile uint32_t *dst, uint32_t val)

Callers 1

test_atomic_dec_and_testFunction · 0.50

Calls

no outgoing calls

Tested by 1

test_atomic_dec_and_testFunction · 0.40