Date: Fri, 15 Dec 2000 10:56:06 -0800 From: Alfred Perlstein <bright@wintelcom.net> To: John Baldwin <jhb@FreeBSD.ORG> Cc: Julian Elischer <julian@elischer.org>, smp@FreeBSD.ORG Subject: Re: atomic increment? Message-ID: <20001215105605.S19572@fw.wintelcom.net> In-Reply-To: <XFMail.001215105012.jhb@FreeBSD.org>; from jhb@FreeBSD.ORG on Fri, Dec 15, 2000 at 10:50:12AM -0800 References: <3A39F8DA.FD4CA0A5@elischer.org> <XFMail.001215105012.jhb@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
* John Baldwin <jhb@FreeBSD.ORG> [001215 10:51] wrote: > > On 15-Dec-00 Julian Elischer wrote: > > CAn we have an atomic increment and decrement primative? > > > > presently we get: > > > > .L565: > > movl $1,%eax > >#APP > > lock > > addl %eax,4(%ebx) > > > > > > the movl is totally useless and it would be > > an absolutly trivial addition.. > > the question is; > > is there a religious reason we don't already have it? > > man atomic I think he's looking for a useable and intuative interface. no offence I hope. :) -- -Alfred Perlstein - [bright@wintelcom.net|alfred@freebsd.org] "I have the heart of a child; I keep it in a jar on my desk." To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-smp" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20001215105605.S19572>