diff options
author | Gavin D. Howard <gavin@gavinhoward.com> | 2023-06-03 22:53:35 -0600 |
---|---|---|
committer | Gavin D. Howard <gavin@gavinhoward.com> | 2023-06-03 23:00:36 -0600 |
commit | 331c34ecbdd5af55b2d00a4510d0a7cc0157b103 (patch) | |
tree | acd193656a087a5094ec4c7ac813c19acdcb90fa | |
parent | 86882e0f409ede840124e0d642c6bd19137dab61 (diff) | |
download | bc-331c34ecbdd5af55b2d00a4510d0a7cc0157b103.tar.gz |
Tweak comments
Signed-off-by: Gavin D. Howard <gavin@gavinhoward.com>
-rw-r--r-- | src/num.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -2929,14 +2929,14 @@ exit: #endif // BC_ENABLE_EXTRA_MATH /** - * Converts a number from limbs with base BC_BASE_POW to base @a pow, where - * @a pow is obase^N. + * Takes a number with limbs with base BC_BASE_POW and converts the limb at the + * given index to base @a pow, where @a pow is obase^N. * @param n The number to convert. * @param rem BC_BASE_POW - @a pow. * @param pow The power of obase we will convert the number to. * @param idx The index of the number to start converting at. Doing the * conversion is O(n^2); we have to sweep through starting at the - * least significant limb + * least significant limb. */ static void bc_num_printFixup(BcNum* restrict n, BcBigDig rem, BcBigDig pow, size_t idx) @@ -2998,8 +2998,8 @@ bc_num_printFixup(BcNum* restrict n, BcBigDig rem, BcBigDig pow, size_t idx) } /** - * Prepares a number for printing in a base that is not a divisor of - * BC_BASE_POW. This basically converts the number from having limbs of base + * Prepares a number for printing in a base that does not have BC_BASE_POW as a + * power. This basically converts the number from having limbs of base * BC_BASE_POW to limbs of pow, where pow is obase^N. * @param n The number to prepare for printing. * @param rem The remainder of BC_BASE_POW when divided by a power of the base. |