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: Benjamin Kosnik <bkoz at redhat dot com>
- To: Jonathan Wakely <jwakely dot gcc at gmail 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: Wed, 7 Dec 2011 15:58:33 -0800
- Subject: Re: [v3] RFC: rename __calculate_memory_order
- References: <CAH6eHdRSC_kzCOA2xqNfLrv56OnafcwUmzYvCxv+F1xP=eB7QA@mail.gmail.com>
> * 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?
-benjamin