From owner-freebsd-smp Fri Dec 15 10:56:12 2000 From owner-freebsd-smp@FreeBSD.ORG Fri Dec 15 10:56:10 2000 Return-Path: Delivered-To: freebsd-smp@freebsd.org Received: from fw.wintelcom.net (ns1.wintelcom.net [209.1.153.20]) by hub.freebsd.org (Postfix) with ESMTP id 3FAA437B400; Fri, 15 Dec 2000 10:56:06 -0800 (PST) Received: (from bright@localhost) by fw.wintelcom.net (8.10.0/8.10.0) id eBFIu6f19245; Fri, 15 Dec 2000 10:56:06 -0800 (PST) Date: Fri, 15 Dec 2000 10:56:06 -0800 From: Alfred Perlstein To: John Baldwin Cc: Julian Elischer , smp@FreeBSD.ORG Subject: Re: atomic increment? Message-ID: <20001215105605.S19572@fw.wintelcom.net> References: <3A39F8DA.FD4CA0A5@elischer.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from jhb@FreeBSD.ORG on Fri, Dec 15, 2000 at 10:50:12AM -0800 Sender: bright@fw.wintelcom.net Sender: owner-freebsd-smp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org * John Baldwin [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