From owner-cvs-all Fri Oct 6 2: 4:22 2000 Delivered-To: cvs-all@freebsd.org Received: from anchor-post-31.mail.demon.net (anchor-post-31.mail.demon.net [194.217.242.89]) by hub.freebsd.org (Postfix) with ESMTP id A98E237B66D; Fri, 6 Oct 2000 02:04:16 -0700 (PDT) Received: from nlsys.demon.co.uk ([158.152.125.33] helo=herring.nlsystems.com) by anchor-post-31.mail.demon.net with esmtp (Exim 2.12 #1) id 13hTQJ-000GLO-0V; Fri, 6 Oct 2000 10:04:12 +0100 Received: from salmon.nlsystems.com (salmon.nlsystems.com [10.0.0.3]) by herring.nlsystems.com (8.9.3/8.8.8) with ESMTP id KAA21131; Fri, 6 Oct 2000 10:10:26 +0100 (BST) (envelope-from dfr@nlsystems.com) Date: Fri, 6 Oct 2000 10:03:35 +0100 (BST) From: Doug Rabson To: Mike Smith Cc: John Baldwin , cvs-committers@freebsd.org, cvs-all@freebsd.org Subject: Re: cvs commit: src/sys/alpha/include atomic.h src/sys/i386/include atomic.h In-Reply-To: <200010052235.e95MZ2h03295@mass.osd.bsdi.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Thu, 5 Oct 2000, 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? For alpha, readandclear is marginally more efficient since you don't need to read the original value in order to have something to pass as a compare value for cmpset. -- Doug Rabson Mail: dfr@nlsystems.com Phone: +44 20 8348 6160 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message