Positional popcount in optimised assembler is typically done on SIMD ISAs in
around 500 lines. Power ISA thanks to `bpermd` can be much more efficient:
with SVP64 even more so. The reference implementation showing the concept
-is below, and it adds up the totals of each bit set to 1 in each bit-position,
-of an array of input values.
+is below.
```
// Copyright (c) 2020 Robert Clausecker <fuz@fuz.su>
}
}
```
-
+Array popcount is just standard popcount function on an array of values whereas positional popcount adds up the totals of each bit set to 1 in each bit-position, of an array of input values.
<img src="/openpower/sv/cookbook/popcount.svg " alt="pospopcnt" width="70%" />
[[!tag svp64_cookbook ]]