From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Sun, 4 Apr 2004 17:20:26 -0700 From: Randolph Chung To: Alan Cox Subject: Re: [parisc-linux] ATOMIC_HASH brainfart Message-ID: <20040405002026.GT750@tausq.org> References: <20040404065604.GA2335@colo.lackof.org> <1081123678.10091.19.camel@dhcp23.swansea.linux.org.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: <1081123678.10091.19.camel@dhcp23.swansea.linux.org.uk> Cc: Grant Grundler , HPPA List Reply-To: Randolph Chung List-Id: parisc-linux developers list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , > > Seems like someone was confused when they hacked ATOMIC_HASH macro. > > Cacheline is 64 bytes not 256...but I've been told several times gcc > > is smart enough to convert "foo/64" to "foo>>6"...then just use > > the L1_CACHE_BYTES definition to indicate intent? > > IFF foo is a constant or foo is unsigned. Looks fine to me or you can even use L1_CACHE_SHIFT :) randolph -- Randolph Chung Debian GNU/Linux Developer, hppa/ia64 ports http://www.tausq.org/