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

Function atomic_add_64

freebsd/i386/include/atomic.h:627–637  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

625}
626
627static __inline void
628atomic_add_64(volatile uint64_t *p, uint64_t v)
629{
630 uint64_t t;
631
632 for (;;) {
633 t = *p;
634 if (atomic_cmpset_64(p, t, t + v))
635 break;
636 }
637}
638
639static __inline void
640atomic_subtract_64(volatile uint64_t *p, uint64_t v)

Callers 3

rt_setup_rateFunction · 0.50
zone_alloc_limit_hardFunction · 0.50

Calls 1

atomic_cmpset_64Function · 0.70

Tested by

no test coverage detected