projects
/
libreriscv.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3edabea
)
change cldiv/clrem to use cldivrem function
author
Jacob Lifshay
<programmerjake@gmail.com>
Tue, 15 Mar 2022 05:19:05 +0000
(22:19 -0700)
committer
Jacob Lifshay
<programmerjake@gmail.com>
Tue, 15 Mar 2022 05:19:05 +0000
(22:19 -0700)
openpower/sv/bitmanip.mdwn
patch
|
blob
|
history
diff --git
a/openpower/sv/bitmanip.mdwn
b/openpower/sv/bitmanip.mdwn
index 1f8a21b6ca8c1d83b3205b9bd9302f71f1273e6d..75703e79e04ea49292ad84e99cb90d44e128a8e5 100644
(file)
--- a/
openpower/sv/bitmanip.mdwn
+++ b/
openpower/sv/bitmanip.mdwn
@@
-640,10
+640,11
@@
for other instructions.
cldiv RT, RA, RB
```
-TODO: decide what happens on division by zero
-
```
-(RT) = cldiv((RA), (RB))
+n = (RA)
+d = (RB)
+q, r = cldivrem(n, d, width=XLEN)
+(RT) = q
```
## `clrem` Carry-less Remainder
@@
-652,10
+653,11
@@
TODO: decide what happens on division by zero
clrem RT, RA, RB
```
-TODO: decide what happens on division by zero
-
```
-(RT) = clrem((RA), (RB))
+n = (RA)
+d = (RB)
+q, r = cldivrem(n, d, width=XLEN)
+(RT) = r
```
# Instructions for Binary Galois Fields `GF(2^m)`