From: Jacob Lifshay Date: Wed, 3 Jul 2019 04:23:21 +0000 (-0700) Subject: fix comments X-Git-Tag: ls180-24jan2020~941 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c6c5692f293efe99c79cbd13a4af976daf5c9b39;p=ieee754fpu.git fix comments --- diff --git a/src/ieee754/div_rem_sqrt_rsqrt/algorithm.py b/src/ieee754/div_rem_sqrt_rsqrt/algorithm.py index 6b9c2b19..c073dd6f 100644 --- a/src/ieee754/div_rem_sqrt_rsqrt/algorithm.py +++ b/src/ieee754/div_rem_sqrt_rsqrt/algorithm.py @@ -491,8 +491,8 @@ class FixedSqrt: :attribute root: the square root :attribute root_squared: the square of ``root`` :attribute remainder: the remainder - :attribute log2_radix: the base-2 log of the division radix. The number of - bits of quotient that are calculated per pipeline stage. + :attribute log2_radix: the base-2 log of the operation radix. The number of + bits of root that are calculated per pipeline stage. :attribute current_shift: the current bit index """ @@ -500,8 +500,8 @@ class FixedSqrt: """ Create an FixedSqrt. :param radicand: the radicand. - :param log2_radix: the base-2 log of the division radix. The number of - bits of result that are calculated per pipeline stage. + :param log2_radix: the base-2 log of the operation radix. The number of + bits of root that are calculated per pipeline stage. """ assert isinstance(radicand, Fixed) assert radicand.signed is False @@ -513,7 +513,7 @@ class FixedSqrt: self.current_shift = self.root.bit_width def calculate_stage(self): - """ Calculate the next pipeline stage of the division. + """ Calculate the next pipeline stage of the operation. :returns bool: True if this is the last pipeline stage. """