This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: [v3] RFC: rename __calculate_memory_order
- From: Jonathan Wakely <jwakely dot gcc at gmail dot com>
- To: Benjamin Kosnik <bkoz at redhat dot com>
- Cc: "libstdc++" <libstdc++ at gcc dot gnu dot org>, gcc-patches <gcc-patches at gcc dot gnu dot org>, Andrew MacLeod <amacleod at redhat dot com>, Aldy Hernandez <aldyh at redhat dot com>
- Date: Thu, 8 Dec 2011 09:45:33 +0000
- Subject: Re: [v3] RFC: rename __calculate_memory_order
- References: <CAH6eHdRSC_kzCOA2xqNfLrv56OnafcwUmzYvCxv+F1xP=eB7QA@mail.gmail.com> <20111207155833.55c434e3@shotwell>
On 7 December 2011 23:58, Benjamin Kosnik wrote:
>
>> ? ? ? ? * include/bits/atomic_base.h (__calculate_memory_order):
>> Rename to... (__cmpexch_failure_order): This, and rewrite as
>> constexpr function. (compare_exchange_strong, compare_exchange_weak):
>> Use it.
>> ? ? ? ? * include/std/atomic (compare_exchange_strong,
>> compare_exchange_weak): Likewise.
>>
>> Tested x86_64-linux.
>
> looks great to me. More constexpr, what's not to like?
OK, thanks - I checked it in.