From: Terje Mathisen <terje.mathisen@hda.hydro.com>
Subject: Re: Can POWER4, 5 etc continue where Alpha was stopped?
Date: Wed, 29 Aug 2001 19:30:32 +0200 [thread overview]
Message-ID: <3B8D26B8.5467626B@hda.hydro.com> (raw)
In-Reply-To: slrn9oplji.vi7.glc+spam@adams.patriot.net
George Coulouris wrote:
>
> Terje Mathisen <terje.mathisen@hda.hydro.com> wrote:
> [snip]
>
> >popcount() is also useful, mostly when working with bitmaps.
> >
> >A possible use would be for SQL runtime optimization, when joining
> >bitmaps to determine the best evaluation order.
> >
> >I suspect that NSA could use it as a quick way to detect patterns that
> >significantly differ from purely random bitstreams?
> >
> >Terje
>
> Wouldn't popcount(a xor b) give the Hamming distance between two code words?
Right, this is a specific example of what I mentioned.
Terje
PS. My SQL example isn't really that good, because when working with
_big_ bitmaps, not just one or a few registers worth of bits, there are
algorithms which perform very well even without a bitcount() opcode.
I believe it was Robert Harley who first showed me how you could use
bitslice operations to combine 15 64-bit words into just 4, and then do
the popcount() on each of those in paralell.
The resulting code runs at about 1-2 cycles/word, depending upon how
many operations the cpu can handle per cycle.
So, for the popcount opcode to be a win, it must allow superscalar
execution and at least one result per cycle.
Terje
--
- <Terje.Mathisen@hda.hydro.com>
Using self-discipline, see http://www.eiffel.com/discipline
"almost all programming can be viewed as an exercise in caching"
next prev parent reply other threads:[~2001-08-29 17:30 UTC|newest]
Thread overview: 49+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-08-26 17:14 Can POWER4, 5 etc continue where Alpha was stopped? Nova
2001-08-26 22:30 ` del cecchi
2001-08-28 17:39 ` Niels Jørgen Kruse
2001-08-28 18:47 ` Christer Palm
2001-08-28 20:00 ` Del Cecchi
2001-08-27 1:38 ` Robert Deininger
2001-08-27 17:12 ` Richard Tomkins
2001-08-28 19:02 ` McCalpin
2001-08-28 10:14 ` Bruce Hoult
2001-08-29 0:03 ` McCalpin
2001-08-28 15:27 ` Bruce Hoult
2001-08-29 6:25 ` Terje Mathisen
2001-08-29 11:48 ` George Coulouris
2001-08-29 17:30 ` Terje Mathisen [this message]
2001-08-29 19:32 ` Terje Mathisen
2001-08-29 21:45 ` Maynard Handley
2001-08-31 10:09 ` Terje Mathisen
2001-08-31 16:09 ` Serguei Patchkovskii
2001-09-01 19:51 ` Terje Mathisen
2001-08-28 20:38 ` Andi Kleen
2001-08-28 10:16 ` Bruce Hoult
2001-08-28 20:51 ` Nick Maclaren
2001-08-28 23:04 ` Andi Kleen
2001-08-29 7:59 ` Nick Maclaren
2001-08-30 20:18 ` Wow
2001-08-31 7:47 ` Terry C. Shannon
2001-08-31 9:09 ` Ketil Z Malde
2001-08-31 12:52 ` Terry C. Shannon
2001-08-31 13:14 ` McCalpin
2001-09-03 12:23 ` Alexis Cousein
2001-09-05 1:27 ` del cecchi
2001-09-05 2:07 ` Chris Morgan
2001-09-05 18:13 ` Del Cecchi
2001-09-05 18:57 ` Larry Kilgallen
2001-09-05 12:49 ` Sander Vesik
2001-09-05 14:17 ` McCalpin
2001-09-05 14:59 ` Michael Kraemer
2001-09-05 16:32 ` Pentyern
2001-09-06 0:32 ` del cecchi
2001-09-05 18:08 ` Terry C. Shannon
2001-09-06 13:42 ` Stefaan A Eeckels
2001-09-06 15:08 ` Alexis Cousein
2001-09-06 16:40 ` Mark Smotherman
2001-09-06 21:57 ` Stefaan A Eeckels
2001-09-07 16:22 ` Peter da Silva
2001-08-31 12:20 ` Nick Maclaren
2001-09-03 15:07 ` bad bob
2001-08-28 21:16 ` Greg Lindahl
2001-08-29 0:06 ` McCalpin
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox