From ebe2687c95566927b5820791bdd8d0f699f06b2d Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Wed, 6 Dec 2023 14:47:36 +0000 Subject: [PATCH] move words to images --- openpower/sv/cookbook/pospopcnt.mdwn | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) 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
-- 2.30.2