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

Function atomic_fetchadd_64

freebsd/i386/include/atomic.h:616–625  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

614}
615
616static __inline uint64_t
617atomic_fetchadd_64(volatile uint64_t *p, uint64_t v)
618{
619
620 for (;;) {
621 uint64_t t = *p;
622 if (atomic_cmpset_64(p, t, t + v))
623 return (t);
624 }
625}
626
627static __inline void
628atomic_add_64(volatile uint64_t *p, uint64_t v)

Callers 7

atomic_add_64_nvFunction · 0.50
tcp_rel_pacing_rateFunction · 0.50
alloc_unr64Function · 0.50
crypto_newsessionFunction · 0.50
zone_alloc_limit_hardFunction · 0.50
zone_alloc_limitFunction · 0.50
zone_free_limitFunction · 0.50

Calls 1

atomic_cmpset_64Function · 0.70

Tested by

no test coverage detected