aboutsummaryrefslogtreecommitdiff
path: root/src/num.c
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2023-09-30 00:04:56 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2023-09-30 00:04:56 +0000
commit64cab7f0ebf98d410c619193113e274a0150e550 (patch)
treef020625863c866ff5d8ef80706e4b401e5089461 /src/num.c
parentd7553e6782bcd7f960c2f91330c80d7870a7d13f (diff)
parentbaba618c37bc75572f132bf3c43843a49fe7627c (diff)
downloadbc-main.tar.gz
Upgrade bc to 6.6.1 am: 306341a225 am: cdb14c26d9 am: 9e6368af49 am: 64707ec357 am: baba618c37HEADandroid-14.0.0_r51android-14.0.0_r50mastermainandroid14-qpr3-release
Original change: https://android-review.googlesource.com/c/platform/external/bc/+/2768152 Change-Id: I1f97dc3f7092f7f4cda13b08e6758eb2d01d43a2 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
Diffstat (limited to 'src/num.c')
-rw-r--r--src/num.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/num.c b/src/num.c
index 0a597072..e45aa62d 100644
--- a/src/num.c
+++ b/src/num.c
@@ -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.