This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Prototype libatomic
On Wed, 2012-03-14 at 12:00 -0700, Richard Henderson wrote:
> On 03/14/12 11:54, PaweÅ Sikora wrote:
> > is this yet another libatomic implementation better than atomic_ops?
> >
> > http://www.hpl.hp.com/research/linux/atomic_ops/
> > https://github.com/ivmai/libatomic_ops/
It's serves a similar purpose. libatomic_ops was library/header-only
portable support for atomic operations. libatomic is the fallback
library for a compiler that supports the C++11/C11 memory model and
atomic types.
libatomic_ops has a different set of memory orders, although for example
acquire/release should be similar.
If you're still using libatomic_ops, consider moving to the C++11/C11
memory model.
>
> My implementation is targeted at the requirements of C++11.
> The projects you reference are not.
Nonetheless, libatomic_ops can be an input for libatomic, although we
cover a lot of arcs already in the GCC builtins and code generator.
Torvald