From owner-freebsd-smp Fri Dec 15 2:57:10 2000 From owner-freebsd-smp@FreeBSD.ORG Fri Dec 15 02:57:09 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 48A9A37B400 for ; Fri, 15 Dec 2000 02:57:08 -0800 (PST) Received: from monrovia-31.budapest.interware.hu ([195.70.53.223] helo=elischer.org) by mail.interware.hu with esmtp (Exim 3.16 #1 (Debian)) id 146sXy-0001HB-00 for ; Fri, 15 Dec 2000 11:57:06 +0100 Sender: julian@FreeBSD.ORG Message-ID: <3A39F8DA.FD4CA0A5@elischer.org> Date: Fri, 15 Dec 2000 02:56:26 -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: smp@freebsd.org Subject: atomic increment? Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: 7bit Sender: owner-freebsd-smp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org 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? -- __--_|\ 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