Date: Thu, 26 Jul 2001 15:11:00 -0700 From: Arun Sharma <arun@sharmas.dhs.org> To: Bernd Walter <ticso@mail.cicely.de> Cc: hackers@FreeBSD.ORG Subject: Re: Need a clean room implementation of this function Message-ID: <20010726151100.D23264@sharmas.dhs.org> In-Reply-To: <20010726235927.B2249@cicely20.cicely.de>; from ticso@mail.cicely.de on Thu, Jul 26, 2001 at 11:59:27PM %2B0200 References: <20010726135913.A23052@sharmas.dhs.org> <20010726231540.A2249@cicely20.cicely.de> <20010726142106.A23171@sharmas.dhs.org> <20010726235927.B2249@cicely20.cicely.de>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Jul 26, 2001 at 11:59:27PM +0200, Bernd Walter wrote: > [...] > ATOMIC_ASM(set, char, "orb %b2,%0", v) > ATOMIC_ASM(clear, char, "andb %b2,%0", ~v) > [...] That does set, not test-and-set. What I want is exactly what the Intel BTS instruction does: atomically test and set a bit. -Arun To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010726151100.D23264>