From 9a014a11143ebf9c24d88323ce362288dfaf4603 Mon Sep 17 00:00:00 2001 From: lkcl Date: Sun, 6 Mar 2022 08:39:35 +0000 Subject: [PATCH] --- openpower/sv/bitmanip.mdwn | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/openpower/sv/bitmanip.mdwn b/openpower/sv/bitmanip.mdwn index e19dcfef6..d5ebbd6ea 100644 --- a/openpower/sv/bitmanip.mdwn +++ b/openpower/sv/bitmanip.mdwn @@ -628,9 +628,9 @@ def gf_degree(a) : res += 1; return res -def FullDivision(self, f, v, vDegree): +def FullDivision(self, f, v): """ - Takes four arguments, f, v, fDegree, and vDegree where + Takes two arguments, f, v fDegree and vDegree are the degrees of the field elements f and v represented as a polynomials. This method returns the field elements a and b such that @@ -641,7 +641,7 @@ def FullDivision(self, f, v, vDegree): other words a is like floor(f/v) and b is like f modulo v. """ - fDegree = gf_degree(f) + fDegree, vDegree = gf_degree(f), gf_degree(v) res, rem = 0, f i = fDegree mask = 1 << i -- 2.30.2