From: Dmitry Selyutin Date: Sat, 31 Jul 2021 13:48:08 +0000 (+0000) Subject: isa/bcd.mdwn: fix incorrect declaration X-Git-Tag: xlen-bcd~171 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c065efd11dfb1b1876eb821316315fa96cce52ff;p=openpower-isa.git isa/bcd.mdwn: fix incorrect declaration 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 --- diff --git a/openpower/isa/bcd.mdwn b/openpower/isa/bcd.mdwn index 63c42b2d..5af6b669 100644 --- 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]