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

Function atomic_cmpset_64

freebsd/i386/include/atomic.h:566–574  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

564}
565
566static __inline int
567atomic_cmpset_64(volatile uint64_t *dst, uint64_t expect, uint64_t src)
568{
569
570 if ((cpu_feature & CPUID_CX8) == 0)
571 return (atomic_cmpset_64_i386(dst, expect, src));
572 else
573 return (atomic_cmpset_64_i586(dst, expect, src));
574}
575
576static __inline int
577atomic_fcmpset_64(volatile uint64_t *dst, uint64_t *expect, uint64_t src)

Callers 4

atomic_fetchadd_64Function · 0.70
atomic_add_64Function · 0.70
atomic_subtract_64Function · 0.70

Calls 2

atomic_cmpset_64_i386Function · 0.85
atomic_cmpset_64_i586Function · 0.85

Tested by

no test coverage detected