[parisc-linux] ATOMIC_HASH brainfart

Alan Cox alan at lxorguk.ukuu.org.uk
Sun Apr 4 18:08:00 MDT 2004


On Sul, 2004-04-04 at 07:56, Grant Grundler wrote:
> Hi all,
> 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



More information about the parisc-linux mailing list