Re: BSD/freely licensed X86 atomic ops?

From: SenderX (spamtrap_at_crayne.org)
Date: 01/10/05


Date: Mon, 10 Jan 2005 22:47:16 +0000 (UTC)


"Kevin P. Fleming" <spamtrap@crayne.org> wrote in message
news:TJoEd.25036$232.17406@fed1read05...
> I've been Googling all over the place looking for a set of X86 atomic ops
> (increment, decrement, decrement and test, etc.) that I can use in a dual
> licensed (GPL and commercial) project. The best example I've found is in
> the Linux kernel, but of course that is pure GPL.
>
> I know that the code for these is pretty much the same everywhere, but I
> need the piece of mind knowing that I got if from a "safe" source,
> licensing-wise.
>
> The machine/atomic.h from FreeBSD is close, but it doesn't have
> dec-and-test, which I really want :-)
>
> Anyone got any suggestions?
>

http://groups-beta.google.com/group/comp.programming.threads/msg/8403292ed1568c40?rnum=8