From owner-freebsd-smp Fri Dec 15 14:46:56 2000 From owner-freebsd-smp@FreeBSD.ORG Fri Dec 15 14:46:53 2000 Return-Path: Delivered-To: freebsd-smp@freebsd.org Received: from mail.interware.hu (mail.interware.hu [195.70.32.130]) by hub.freebsd.org (Postfix) with ESMTP id 7DF2637B400; Fri, 15 Dec 2000 14:46:52 -0800 (PST) Received: from luanda-49.budapest.interware.hu ([195.70.51.49] helo=elischer.org) by mail.interware.hu with esmtp (Exim 3.16 #1 (Debian)) id 1473co-0005jn-00; Fri, 15 Dec 2000 23:46:50 +0100 Sender: julian@FreeBSD.ORG Message-ID: <3A3A9F32.3C6E1B0E@elischer.org> Date: Fri, 15 Dec 2000 14:46:10 -0800 From: Julian Elischer X-Mailer: Mozilla 4.7 [en] (X11; U; FreeBSD 5.0-CURRENT i386) X-Accept-Language: en, hu MIME-Version: 1.0 To: Alfred Perlstein Cc: John Baldwin , smp@FreeBSD.ORG Subject: Re: atomic increment? References: <3A39F8DA.FD4CA0A5@elischer.org> <20001215105605.S19572@fw.wintelcom.net> Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: 7bit Sender: owner-freebsd-smp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Alfred Perlstein wrote: > > * 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. that would be the one.. :-) . > > 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." -- __--_|\ Julian Elischer / \ julian@elischer.org ( OZ ) World tour 2000 ---> X_.---._/ presently in: Budapest v To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-smp" in the body of the message