
arXiv: 2412.16370
ABSTRACT The positional population count operation pospopcnt counts for an array of ‐bit words how often each of the 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.
FOS: Computer and information sciences, Data Structures and Algorithms, Datenverarbeitung; Informatik, AVX-512, AVX2, Data Structures and Algorithms (cs.DS), ASIMD, positional population count, SIMD
FOS: Computer and information sciences, Data Structures and Algorithms, Datenverarbeitung; Informatik, AVX-512, AVX2, Data Structures and Algorithms (cs.DS), ASIMD, positional population count, SIMD
| selected citations These citations are derived from selected sources. This is an alternative to the "Influence" indicator, which also reflects the overall/total impact of an article in the research community at large, based on the underlying citation network (diachronically). | 1 | |
| popularity This indicator reflects the "current" impact/attention (the "hype") of an article in the research community at large, based on the underlying citation network. | Average | |
| influence This indicator reflects the overall/total impact of an article in the research community at large, based on the underlying citation network (diachronically). | Average | |
| impulse This indicator reflects the initial momentum of an article directly after its publication, based on the underlying citation network. | Average |
