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

Function rte_atomic32_add

dpdk/lib/eal/include/generic/rte_atomic.h:565–570  ·  view source on GitHub ↗

* Atomically add a 32-bit value to an atomic counter. * * @param v * A pointer to the atomic counter. * @param inc * The value to be added to the counter. */

Source from the content-addressed store, hash-verified

563 * The value to be added to the counter.
564 */
565static inline void
566rte_atomic32_add(rte_atomic32_t *v, int32_t inc)
567{
568 rte_atomic_fetch_add_explicit((volatile __rte_atomic int32_t *)&v->cnt, inc,
569 rte_memory_order_seq_cst);
570}
571
572/**
573 * Atomically subtract a 32-bit value from an atomic counter.

Callers 3

rte_atomic32_incFunction · 0.85
sw_event_enqueue_burstFunction · 0.85
test_atomic_usualFunction · 0.85

Calls

no outgoing calls

Tested by 1

test_atomic_usualFunction · 0.68