Boost logo

Boost :

Subject: Re: [boost] [atomic] unconditional cmpxchg8b support
From: Peter Dimov (lists_at_[hidden])
Date: 2012-10-23 19:14:44


Jan Hudec wrote:
> On Wed, Oct 24, 2012 at 00:22:01 +0300, Peter Dimov wrote:
> > Steven Watanabe wrote:
> > >Seriously, if the compiler is set to compile for
> > >an architecture that doesn't support cmpxchg8b,
> > >then Boost.Atomic should not generate this instruction.
> >
> > It's very, very rare for a user to willingly target 386/486 (these
> > processors are all but extinct, not to mention that modern Windows
> > versions simply don't run on them.)
>
> They are extinct in desktop. Not necessarily true of embedded systems.

I can imagine embedded 486 systems still existing, but a default should be
right for the 99.9% of the users, not for the 0.1% who can easily use
something like #define BOOST_ATOMIC_NO_CMPXCHG8B.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk