Skip to contentSkip to conversation

Bitcount ?

Linux-ia64 Dimo Dimitrov-DataManagement 2 participants 2 messages Jun 17, 2000

lore
Share & tools
lore
#0 lore raw

Hi

I need an algoritm to do bitcount across an array, which ran in less than a cycle/byte on IA32/IA64.
I have written an algoritm for bit-parallel adition, and the best time wich I get is ~1.4 c/b.

I really appreciate your feedback.

Dimo Dimitrov

#1 lore raw
Quoted 4 lines · Dimo Dimitrov-DataManagement

I need an algoritm to do bitcount across an array, which ran in less than a cycle/byte on IA32/IA64.
I have written an algoritm for bit-parallel adition, and the best time wich I get is ~1.4 c/b.

I'm not sure I've understood what exactly your problem is, but did you look at the popcnt instruction?

Dan