From: Luke Kenneth Casson Leighton Date: Wed, 6 Dec 2023 14:47:36 +0000 (+0000) Subject: move words to images X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ebe2687c95566927b5820791bdd8d0f699f06b2d;p=libreriscv.git move words to images --- diff --git a/openpower/sv/cookbook/pospopcnt.mdwn b/openpower/sv/cookbook/pospopcnt.mdwn index bf638c2a4..8a1e28ae3 100644 --- a/openpower/sv/cookbook/pospopcnt.mdwn +++ b/openpower/sv/cookbook/pospopcnt.mdwn @@ -54,25 +54,22 @@ 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, horizontally, +however positional popcount is different (vertical). Refer to Fig.1 + pospopcnt -
+Positional popcount adds up the totals of each bit set to 1 in each +bit-position, of an array of input values. Refer to Fig.2 pospopcnt -Array popcount is just standard popcount function -([[!wikipedia Hamming weight]]) on an array of values, horizontally, -however positional popcount is different (vertical). Refer to Fig.1 - - - -Positional popcount adds up the totals of each bit set to 1 in each -bit-position, of an array of input values. Refer to Fig.2