This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: <atomic.h> and single-byte CAS


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]