projects
/
libreriscv.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d55ca21
)
reduce RS for consistency in gfbtmadd
author
Jacob Lifshay
<programmerjake@gmail.com>
Fri, 18 Mar 2022 02:48:52 +0000
(19:48 -0700)
committer
Jacob Lifshay
<programmerjake@gmail.com>
Fri, 18 Mar 2022 02:48:52 +0000
(19:48 -0700)
openpower/sv/bitmanip.mdwn
patch
|
blob
|
history
diff --git
a/openpower/sv/bitmanip.mdwn
b/openpower/sv/bitmanip.mdwn
index ab2c7e2a90c564f480252db741ccfc76ef547ba1..ad120459ef7ef9bae8fea1b8ae0e39a485ef9f07 100644
(file)
--- a/
openpower/sv/bitmanip.mdwn
+++ b/
openpower/sv/bitmanip.mdwn
@@
-701,7
+701,8
@@
c = (RC)
# read all inputs before writing to any outputs in case
# an input overlaps with an output register.
(RT) = gfbmadd(a, (RB), c)
-(RS) = a ^ c
+# use gfbmadd again since it reduces the result
+(RS) = gfbmadd(a, 1, c) # "a * 1 + c"
```
## `gfbinv` -- Binary Galois Field `GF(2^m)` Inverse