tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: 2*(void *) atomic swap?



On Thu, Jul 30, 2015 at 06:23:33PM +0000, Taylor R Campbell wrote:
>    I don't think you can have a portable function like that.
> 
> Not that hard:
> 
> - On i386, use cmpxchg8b.

Just for the archive, this effectively means Pentium+. There are
actually 486-class SMP systems.

Joerg


Home | Main Index | Thread Index | Old Index