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