@@ -2484,15 +2484,15 @@ mpd_qand(mpd_t *result, const mpd_t *a, const mpd_t *b,
24842484 }
24852485 result -> data [i ++ ] = z ;
24862486
2487- /* scan the rest of y for digit > 1 */
2487+ /* scan the rest of y for digits > 1 */
24882488 for (; k < MPD_RDIGITS ; k ++ ) {
24892489 ybit = y % 10 ;
24902490 y /= 10 ;
24912491 if (ybit > 1 ) {
24922492 goto invalid_operation ;
24932493 }
24942494 }
2495- /* scan the rest of big for digit > 1 */
2495+ /* scan the rest of big for digits > 1 */
24962496 for (; i < big -> len ; i ++ ) {
24972497 y = big -> data [i ];
24982498 for (k = 0 ; k < MPD_RDIGITS ; k ++ ) {
@@ -2571,7 +2571,7 @@ mpd_qinvert(mpd_t *result, const mpd_t *a, const mpd_context_t *ctx,
25712571 }
25722572
25732573 for (i = 0 ; i < len ; i ++ ) {
2574- x = (i < a -> len ) ? a -> data [i ] : 0 ;
2574+ x = (i < a -> len ) ? a -> data [i ] : 0 ;
25752575 z = 0 ;
25762576 for (k = 0 ; k < MPD_RDIGITS ; k ++ ) {
25772577 xbit = x % 10 ;
@@ -2674,7 +2674,7 @@ mpd_qor(mpd_t *result, const mpd_t *a, const mpd_t *b,
26742674 z += (xbit |ybit ) ? mpd_pow10 [k ] : 0 ;
26752675 }
26762676
2677- /* scan and copy the rest of y for digit > 1 */
2677+ /* scan for digits > 1 and copy the rest of y */
26782678 for (; k < MPD_RDIGITS ; k ++ ) {
26792679 ybit = y % 10 ;
26802680 y /= 10 ;
@@ -2684,7 +2684,7 @@ mpd_qor(mpd_t *result, const mpd_t *a, const mpd_t *b,
26842684 z += ybit * mpd_pow10 [k ];
26852685 }
26862686 result -> data [i ++ ] = z ;
2687- /* scan and copy the rest of big for digit > 1 */
2687+ /* scan for digits > 1 and copy the rest of big */
26882688 for (; i < big -> len ; i ++ ) {
26892689 y = big -> data [i ];
26902690 for (k = 0 ; k < MPD_RDIGITS ; k ++ ) {
@@ -2710,7 +2710,7 @@ mpd_qor(mpd_t *result, const mpd_t *a, const mpd_t *b,
27102710}
27112711
27122712/*
2713- * Rotate the coefficient of a by b->data digits. b must be an integer with
2713+ * Rotate the coefficient of 'a' by 'b' digits. 'b' must be an integer with
27142714 * exponent 0.
27152715 */
27162716void
@@ -2993,7 +2993,7 @@ mpd_qxor(mpd_t *result, const mpd_t *a, const mpd_t *b,
29932993 z += (xbit ^ybit ) ? mpd_pow10 [k ] : 0 ;
29942994 }
29952995
2996- /* scan and copy the rest of y for digit > 1 */
2996+ /* scan for digits > 1 and copy the rest of y */
29972997 for (; k < MPD_RDIGITS ; k ++ ) {
29982998 ybit = y % 10 ;
29992999 y /= 10 ;
@@ -3003,7 +3003,7 @@ mpd_qxor(mpd_t *result, const mpd_t *a, const mpd_t *b,
30033003 z += ybit * mpd_pow10 [k ];
30043004 }
30053005 result -> data [i ++ ] = z ;
3006- /* scan and copy the rest of big for digit > 1 */
3006+ /* scan for digits > 1 and copy the rest of big */
30073007 for (; i < big -> len ; i ++ ) {
30083008 y = big -> data [i ];
30093009 for (k = 0 ; k < MPD_RDIGITS ; k ++ ) {
0 commit comments