From c6c5692f293efe99c79cbd13a4af976daf5c9b39 Mon Sep 17 00:00:00 2001 From: Jacob Lifshay Date: Tue, 2 Jul 2019 21:23:21 -0700 Subject: [PATCH] fix comments --- src/ieee754/div_rem_sqrt_rsqrt/algorithm.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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. """ -- 2.30.2