Abstract
The positional population count operation pospopcnt counts for an array of (Formula presented.) -bit words how often each of the (Formula presented.) bits was set. Various applications in bioinformatics, database engineering, and digital processing exist. Building on earlier work by Klarqvist et al., we show how positional population counts can be rapidly computed using SIMD techniques with good performance from the first byte, approaching memory-bound speeds for input arrays of as little as 4 KiB. Improvements include an improved algorithm structure, better handling of unaligned and very short arrays, as well as faster bit-parallel accumulation of intermediate results. We provide a generic algorithm description as well as implementations for various SIMD instruction set extensions, including Intel AVX2, AVX-512, and ARM ASIMD, and discuss the adaptation of our algorithm to other platforms.
Author supplied keywords
Cite
CITATION STYLE
Clausecker, R., Lemire, D., & Schintke, F. (2025). Faster Positional-Population Counts for AVX2, AVX-512, and ASIMD. Concurrency and Computation: Practice and Experience, 37(27–28). https://doi.org/10.1002/cpe.70435
Register to see more suggestions
Mendeley helps you to discover research relevant for your work.