(no commit message)
authorlkcl <lkcl@web>
Tue, 25 Oct 2022 15:28:11 +0000 (16:28 +0100)
committerIkiWiki <ikiwiki.info>
Tue, 25 Oct 2022 15:28:11 +0000 (16:28 +0100)
openpower/sv/rfc/ls003.mdwn

index 4a4015e10164983bb55cc227b9052dd98d5a4715..f397365de4a09b98a9b8d1b4d190f8fa0f7ff4e5 100644 (file)
@@ -181,7 +181,7 @@ Pseudo-code:
 ```
 if ((RA) <u (RB)) & ((RB) != [0]*64) then  # Check RA<RB, for divide-by-0
     dividend[0:127] <- (RA) || (RC)        # Combine RA/RC as 128-bit
-    divisor[0:127] <- EXTZ(RB)             # Extend RB to 128-bit
+    divisor[0:127] <- [0]*64 || (RB)       # Extend RB to 128-bit
     result <- dividend / divisor           # Division
     modulo <- dividend % divisor           # Modulo
     RT <- result[64:127]                   # Store result in RT