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

Function rte_atomic16_add

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

* Atomically add a 16-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

278 * The value to be added to the counter.
279 */
280static inline void
281rte_atomic16_add(rte_atomic16_t *v, int16_t inc)
282{
283 rte_atomic_fetch_add_explicit((volatile __rte_atomic int16_t *)&v->cnt, inc,
284 rte_memory_order_seq_cst);
285}
286
287/**
288 * Atomically subtract a 16-bit value from an atomic counter.

Callers 2

rte_atomic16_incFunction · 0.85
test_atomic_usualFunction · 0.85

Calls

no outgoing calls

Tested by 1

test_atomic_usualFunction · 0.68