projects
/
libreriscv.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0587cb6
)
(no commit message)
author
lkcl
<lkcl@web>
Tue, 15 Feb 2022 05:54:16 +0000
(
05:54
+0000)
committer
IkiWiki
<ikiwiki.info>
Tue, 15 Feb 2022 05:54:16 +0000
(
05:54
+0000)
openpower/sv/bitmanip.mdwn
patch
|
blob
|
history
diff --git
a/openpower/sv/bitmanip.mdwn
b/openpower/sv/bitmanip.mdwn
index e2803b332287b585e2f86bcf40a97bbb15ddd9cf..269e9bff3bc28b5ef8bb603579068b4094f033fe 100644
(file)
--- a/
openpower/sv/bitmanip.mdwn
+++ b/
openpower/sv/bitmanip.mdwn
@@
-316,6
+316,12
@@
uint_xlen_t bmextrev(RA, RB, sh)
| NN | RT | RA | RB | sh | 0 111 |Rc| bmrevi |
+# grevlut
+
+ lut2(imm, a, b):
+ idx = b << 1 | a
+ return imm[idx] # idx by LSB0 order
+
# grev