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

Function atomic_swap_64

freebsd/mips/include/atomic.h:807–817  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

805
806#if defined(__mips_n64) || defined(__mips_n32)
807static __inline uint64_t
808atomic_swap_64(volatile uint64_t *ptr, const uint64_t value)
809{
810 uint64_t retval;
811
812 retval = *ptr;
813
814 while (!atomic_fcmpset_64(ptr, &retval, value))
815 ;
816 return (retval);
817}
818#endif
819
820#ifdef __mips_n64

Callers

nothing calls this directly

Calls 1

atomic_fcmpset_64Function · 0.70

Tested by

no test coverage detected