Re: BSD/freely licensed X86 atomic ops?

From: SenderX (
Date: 01/10/05

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

"Kevin P. Fleming" <> wrote in message
> 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?