projects
/
openpower-isa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8abcd7b
)
remove ROTL64(1, idx), just use TLI[7-idx] it is shorter and readable
author
Luke Kenneth Casson Leighton
<lkcl@lkcl.net>
Sat, 11 Dec 2021 15:19:48 +0000
(15:19 +0000)
committer
Luke Kenneth Casson Leighton
<lkcl@lkcl.net>
Sat, 11 Dec 2021 15:19:48 +0000
(15:19 +0000)
openpower/isa/bitmanip.mdwn
patch
|
blob
|
history
diff --git
a/openpower/isa/bitmanip.mdwn
b/openpower/isa/bitmanip.mdwn
index 46cddc44869959e6422100c6b881cc7fe6110d55..f428bd1b762d978eb552cb78932d0e44514e1a8b 100644
(file)
--- a/
openpower/isa/bitmanip.mdwn
+++ b/
openpower/isa/bitmanip.mdwn
@@
-12,7
+12,7
@@
Pseudo-code:
result <- [0] * XLEN
do i = 0 to XLEN - 1
idx <- (RT)[i] || (RA)[i] || (RB)[i]
- result[i] <-
(TLI & ROTL64(1, idx)) != 0
+ result[i] <-
TLI[7-idx]
RT <- result
Special Registers Altered: