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

Function rte_atomic16_dec_and_test

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

Source from the content-addressed store, hash-verified

75}
76
77static inline int rte_atomic16_dec_and_test(rte_atomic16_t *v)
78{
79 return rte_atomic_fetch_sub_explicit(&v->cnt, 1, rte_memory_order_acquire) - 1 == 0;
80}
81
82static inline uint16_t
83rte_atomic16_exchange(volatile uint16_t *dst, uint16_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