Re: BSD/freely licensed X86 atomic ops?
From: SenderX (spamtrap_at_crayne.org)
Date: Mon, 10 Jan 2005 22:47:16 +0000 (UTC)
"Kevin P. Fleming" <firstname.lastname@example.org> 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,
> The machine/atomic.h from FreeBSD is close, but it doesn't have
> dec-and-test, which I really want :-)
> Anyone got any suggestions?