Source-Changes-D archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: CVS commit: src/common/lib/libc/atomic
On 14/05/2022 06:35, Nick Hudson wrote:
Module Name: src
Committed By: skrll
Date: Sat May 14 05:35:55 UTC 2022
Modified Files:
src/common/lib/libc/atomic: atomic_c11_compare_exchange_cas_16.c
atomic_c11_compare_exchange_cas_32.c
atomic_c11_compare_exchange_cas_8.c
Commit message should have been
lib/56832: __atomic_compare_exchange[_n] is wrong on non-mainstream
platforms
Make the implementation match the documentation wrt 'expected'
This built-in function implements an atomic compare and exchange
operation.This compares the contents of *ptr with the contents of
*expected. If equal, the operation is a read-modify-write operation that
writes desired into *ptr. If they are not equal, the operation is a read
and the current contents of *ptr are written into *expected.
Home |
Main Index |
Thread Index |
Old Index