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

Function atomic_subtract_64

freebsd/i386/include/atomic.h:639–649  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

637}
638
639static __inline void
640atomic_subtract_64(volatile uint64_t *p, uint64_t v)
641{
642 uint64_t t;
643
644 for (;;) {
645 t = *p;
646 if (atomic_cmpset_64(p, t, t - v))
647 break;
648 }
649}
650
651#endif /* _KERNEL */
652

Callers 1

atomic_dec_64Function · 0.50

Calls 1

atomic_cmpset_64Function · 0.70

Tested by

no test coverage detected