From owner-cvs-all Thu Oct 5 16:34: 2 2000 Delivered-To: cvs-all@freebsd.org Received: from pike.osd.bsdi.com (pike.osd.bsdi.com [204.216.28.222]) by hub.freebsd.org (Postfix) with ESMTP id 69F6137B502; Thu, 5 Oct 2000 16:33:58 -0700 (PDT) Received: from laptop.baldwin.cx (john@dhcp248.osd.bsdi.com [204.216.28.248]) by pike.osd.bsdi.com (8.11.0/8.9.3) with ESMTP id e95NXli20279; Thu, 5 Oct 2000 16:33:47 -0700 (PDT) (envelope-from jhb@FreeBSD.org) Message-ID: X-Mailer: XFMail 1.4.0 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <200010052235.e95MZ2h03295@mass.osd.bsdi.com> Date: Thu, 05 Oct 2000 16:34:00 -0700 (PDT) From: John Baldwin To: Mike Smith Subject: Re: cvs commit: src/sys/alpha/include atomic.h src/sys/i386/incl Cc: cvs-all@FreeBSD.org, cvs-committers@FreeBSD.org Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On 05-Oct-00 Mike Smith wrote: >> jhb 2000/10/05 15:19:50 PDT >> >> Modified files: >> sys/alpha/include atomic.h >> sys/i386/include atomic.h >> Log: >> Add atomic_readandclear_int and atomic_readandclear_long. > > Um, isn't this just exchange-with-zero? That's one way of implementing it, yes. That is not the method used by the alpha, however. I chose the name due to prior existence. The alpha already had an atomic_readandclear_int, albeit buried in the ipl code. The x86 had a similar loadandclear() in cpufunc.h -- John Baldwin -- http://www.FreeBSD.org/~jhb/ PGP Key: http://www.baldwin.cx/~john/pgpkey.asc "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message