This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: <atomic.h> and single-byte CAS
- From: Joseph Myers <joseph at codesourcery dot com>
- To: Florian Weimer <fweimer at redhat dot com>
- Cc: <libc-alpha at sourceware dot org>
- Date: Thu, 25 Jul 2019 15:39:19 +0000
- Subject: Re: <atomic.h> and single-byte CAS
- References: <87wogsvlsz.fsf@oldenburg2.str.redhat.com>
On Mon, 8 Jul 2019, Florian Weimer wrote:
> Our <atomic.h> does not support single-byte CAS. Does anyone know why?
The obvious reason would be that some architectures don't actually support
it directly, so it has to be implemented there based on word-size CAS, and
the glibc uses of atomics can readily avoid any need for single-byte CAS.
--
Joseph S. Myers
joseph@codesourcery.com