Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 4 Oct 2019 17:31:08 +0300
From:      Andriy Gapon <avg@FreeBSD.org>
To:        freebsd-arch@FreeBSD.ORG
Subject:   atomic_cmpset_64 vs atomic_cas_64
Message-ID:  <0a330e4a-9b8b-7678-cb54-a379f1e4b0bc@FreeBSD.org>

next in thread | raw e-mail | index | archive | help

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?0a330e4a-9b8b-7678-cb54-a379f1e4b0bc>