From 51de093934bd4157b264fba97e7bc8ae937517c7 Mon Sep 17 00:00:00 2001 From: shriya Date: Wed, 6 Dec 2023 14:39:43 +0000 Subject: [PATCH] --- openpower/sv/cookbook/pospopcnt.mdwn | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/openpower/sv/cookbook/pospopcnt.mdwn b/openpower/sv/cookbook/pospopcnt.mdwn index 9451f90b7..8421897f8 100644 --- a/openpower/sv/cookbook/pospopcnt.mdwn +++ b/openpower/sv/cookbook/pospopcnt.mdwn @@ -46,31 +46,32 @@ Array popcount is just standard popcount function ([[!wikipedia Hamming weight]]) on an array of values, horizontally, however positional popcount is different (vertical) -pospopcnt + Positional popcount adds up the totals of each bit set to 1 in each bit-position, of an array of input values. -pospopcnt - pospopcnt -pospopcnt -pospopcnt -pospopcnt -pospopcnt + pospopcnt + +pospopcnt -pospopcnt + pospopcnt + + +pospopcnt +pospopcnt + + # Visual representation of the pospopcount algorithm # Walkthrough of the assembler -- 2.30.2