From f78ea6039307bda2e3c2af0d0a5773da5a7264f5 Mon Sep 17 00:00:00 2001 From: Jacob Lifshay Date: Thu, 17 Mar 2022 19:48:52 -0700 Subject: [PATCH] reduce RS for consistency in gfbtmadd --- openpower/sv/bitmanip.mdwn | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/openpower/sv/bitmanip.mdwn b/openpower/sv/bitmanip.mdwn index ab2c7e2a9..ad120459e 100644 --- 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 -- 2.30.2