Subject: Re: Atomic ops API
To: Jason Thorpe <thorpej@shagadelic.org>
From: None <tlaronde@polynum.com>
List: tech-kern
Date: 03/13/2007 17:17:35
On Tue, Mar 13, 2007 at 08:26:51AM -0700, Jason Thorpe wrote:
> 
> On Mar 13, 2007, at 8:18 AM, Ignatios Souvatzis wrote:
> 
> >On Tue, Mar 13, 2007 at 08:16:10AM -0700, Jason Thorpe wrote:
> >
> >>Oh, and dunno... m68k called it "compare-and-set" long before Solaris
> >>called it "compare-and-swap"
> >
> >I was pretty sure until you wrote that (but have my books at home)
> >that CAS is compare and swap.
> 
> Hm, if it is compare-and-swap, then great... but I thought it was  
> compare-and-set.  Anyway, if you could double-check for me, that would  
> be great -- m68k is one of the platforms I was thinking of when I went  
> with "compare-and-store"

cas is "compare and swap" from Solaris Internals, second edition, page
820.

Regards,
-- 
Thierry Laronde (Alceste) <tlaronde +AT+ polynum +dot+ com>
                 http://www.kergis.com/
Key fingerprint = 0FF7 E906 FBAF FE95 FD89  250D 52B1 AE95 6006 F40C