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:
5ace543
)
isa/bcd.mdwn: fix incorrect declaration
author
Dmitry Selyutin
<dmitry.selyutin@3mdeb.com>
Sat, 31 Jul 2021 13:48:08 +0000
(13:48 +0000)
committer
Dmitry Selyutin
<dmitry.selyutin@3mdeb.com>
Sat, 31 Jul 2021 13:48:12 +0000
(13:48 +0000)
In pseudocode used in our markdown files, dc[16] does not mean that
we declare a variable of 16 bits; it only means that we access bit
16 of variable dc. Details:
https://bugs.libre-soc.org/show_bug.cgi?id=656#c15
openpower/isa/bcd.mdwn
patch
|
blob
|
history
diff --git
a/openpower/isa/bcd.mdwn
b/openpower/isa/bcd.mdwn
index 63c42b2d7c38b73a8aba79507a5639b709b3de43..5af6b669b88e284755c83863cc4619382e8b074f 100644
(file)
--- a/
openpower/isa/bcd.mdwn
+++ b/
openpower/isa/bcd.mdwn
@@
-33,7
+33,7
@@
XO-Form
Pseudo-code:
- dc
[16]
<- [0]*16
+ dc <- [0]*16
do i = 0 to 15
temp <- (0b0 || RA[4*i:63]) + (0b0 || RB[4*i:63])
dc[i] <- temp[0]