rename pospopcount image, split into two
[libreriscv.git] / openpower / sv / cookbook / pospopcnt.mdwn
index 22ca3077e6d28b3e02aba7996a93de05eb3eb5aa..2c9b6533bfd98dd0918f976b3d7f7c8fca97da2f 100644 (file)
@@ -42,9 +42,16 @@ sv.add *16,*16,*24         # and accumulate in results
 sv.bc/all 16, *0, -0x28   # reduce CTR by VL and stop if -ve
 ```
 
-Array popcount is just standard popcount function ([[!wikipedia Hamming weight]]) 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.
+Array popcount is just standard popcount function
+([[!wikipedia Hamming weight]]) on an array of values, horizontally,
+however positional popcount is different (vertical)
 
-<img src="/openpower/sv/cookbook/popcount.svg " alt="pospopcnt" width="70%" />
+<img src="/openpower/sv/cookbook/1_popcount.svg " alt="pospopcnt" width="70%" />
+
+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/2_popcount.svg " alt="pospopcnt" width="70%" />
 
 
 [[!tag svp64_cookbook ]]