[PATCH 1/2] Optimize generic spinlock code and use C11 like atomic macros.
Andreas Schwab
schwab@suse.de
Mon Apr 10 13:36:00 GMT 2017
On Apr 10 2017, Stefan Liebler <stli@linux.vnet.ibm.com> wrote:
> On 04/10/2017 10:17 AM, Andreas Schwab wrote:
>> On Apr 07 2017, Stefan Liebler <stli@linux.vnet.ibm.com> wrote:
>>
>>> /* ATOMIC_EXCHANGE_USES_CAS is equal to 1 if atomic_exchange operations
>>
>> Why 1 exactly, and not just non-zero?
>>
>> Andreas.
>>
>
> This points out that there is only a true/false choice and
> all architectures have to define it.
That doesn't answer my question. Why do you need the dance of checking
for 1 explicitly?
Andreas.
--
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."
More information about the Libc-alpha
mailing list