atomic_cmpset_64 vs atomic_cas_64

Andriy Gapon avg at FreeBSD.org
Fri Oct 4 14:31:13 UTC 2019


I see that almost all 64-bit platforms provide atomic_cmpset_64, but sparc64
provides atomic_cas_64 (instead?).
I think that the meanings of "cas" and "cmpset" are really the same, but I am
not sure if there are any differences in that the functions do.
Could anyone who knows that stuff (sparc64 assembly) please shed some light?
Thanks!

#define     atomic_cas_64(p, e, s)  casxa((p), (e), (s), __ASI_ATOMIC)

-- 
Andriy Gapon


More information about the freebsd-arch mailing list