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

Function atomic_swap_32

freebsd/mips/include/atomic.h:794–804  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

792}
793
794static __inline uint32_t
795atomic_swap_32(volatile uint32_t *ptr, const uint32_t value)
796{
797 uint32_t retval;
798
799 retval = *ptr;
800
801 while (!atomic_fcmpset_32(ptr, &retval, value))
802 ;
803 return (retval);
804}
805
806#if defined(__mips_n64) || defined(__mips_n32)
807static __inline uint64_t

Callers 9

fletcher_4_impl_setFunction · 0.50
vdev_raidz_math_initFunction · 0.50
vdev_raidz_impl_setFunction · 0.50
aes_impl_initFunction · 0.50
aes_impl_setFunction · 0.50
gcm_impl_initFunction · 0.50
gcm_impl_setFunction · 0.50
gcm_set_avxFunction · 0.50

Calls 1

atomic_fcmpset_32Function · 0.70

Tested by

no test coverage detected