From: lkcl Date: Sun, 6 Mar 2022 10:01:29 +0000 (+0000) Subject: (no commit message) X-Git-Tag: opf_rfc_ls005_v1~3143 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5cb3e55b91f5357e4a7bf409a77e0c0c399dcb50;p=libreriscv.git --- diff --git a/openpower/sv/bitmanip.mdwn b/openpower/sv/bitmanip.mdwn index 3519fcf6f..9ea7249a1 100644 --- a/openpower/sv/bitmanip.mdwn +++ b/openpower/sv/bitmanip.mdwn @@ -681,7 +681,7 @@ def gf_invert(a, mod=0x1B) : v = mod g1 = 1 g2 = 0 - j = gf_degree(a) - mod_degree + j = gf_degree(a) - 8 while (a != 1) : if (j < 0) : @@ -692,8 +692,8 @@ def gf_invert(a, mod=0x1B) : a ^= v << j g1 ^= g2 << j - a %= (1<