projects
/
libreriscv.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8de15bf
)
(no commit message)
author
shriya
<shriya@web>
Tue, 21 Nov 2023 15:52:53 +0000
(15:52 +0000)
committer
IkiWiki
<ikiwiki.info>
Tue, 21 Nov 2023 15:52:53 +0000
(15:52 +0000)
openpower/sv/cookbook/pospopcnt.mdwn
patch
|
blob
|
history
diff --git
a/openpower/sv/cookbook/pospopcnt.mdwn
b/openpower/sv/cookbook/pospopcnt.mdwn
index 37bda1a17c334c1bf82e431e847a0bb7f124b98a..1855abe1106e843b5cf8682c210962565a8cfecc 100644
(file)
--- a/
openpower/sv/cookbook/pospopcnt.mdwn
+++ b/
openpower/sv/cookbook/pospopcnt.mdwn
@@
-20,6
+20,7
@@
func count8safe(counts *[8]int, buf []uint8) {
}
```
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 ]]