mklarqvist / positional-popcount

Fast C functions for the computing the positional popcount (pospopcnt).
Apache License 2.0
52 stars 5 forks source link

new scalar tail for sse2_sad method #7

Closed aqrit closed 5 years ago

aqrit commented 5 years ago

Not the greatest method: If one knows that there are at least 4 words remaining then this is too much work. If one knows that there is only 1 word remaining then this is too much work.

However, if we’re being lazy and don’t want to unroll the tail loop too much...

WojciechMula commented 5 years ago

@aqrit great that you also got involved :)