}
result->data[i++] = z;
- /* scan the rest of y for digit > 1 */
+ /* scan the rest of y for digits > 1 */
for (; k < MPD_RDIGITS; k++) {
ybit = y % 10;
y /= 10;
goto invalid_operation;
}
}
- /* scan the rest of big for digit > 1 */
+ /* scan the rest of big for digits > 1 */
for (; i < big->len; i++) {
y = big->data[i];
for (k = 0; k < MPD_RDIGITS; k++) {
}
for (i = 0; i < len; i++) {
- x = (i < a->len) ? a->data[i] : 0;
+ x = (i < a->len) ? a->data[i] : 0;
z = 0;
for (k = 0; k < MPD_RDIGITS; k++) {
xbit = x % 10;
z += (xbit|ybit) ? mpd_pow10[k] : 0;
}
- /* scan and copy the rest of y for digit > 1 */
+ /* scan for digits > 1 and copy the rest of y */
for (; k < MPD_RDIGITS; k++) {
ybit = y % 10;
y /= 10;
z += ybit*mpd_pow10[k];
}
result->data[i++] = z;
- /* scan and copy the rest of big for digit > 1 */
+ /* scan for digits > 1 and copy the rest of big */
for (; i < big->len; i++) {
y = big->data[i];
for (k = 0; k < MPD_RDIGITS; k++) {
}
/*
- * Rotate the coefficient of a by b->data digits. b must be an integer with
+ * Rotate the coefficient of 'a' by 'b' digits. 'b' must be an integer with
* exponent 0.
*/
void
z += (xbit^ybit) ? mpd_pow10[k] : 0;
}
- /* scan and copy the rest of y for digit > 1 */
+ /* scan for digits > 1 and copy the rest of y */
for (; k < MPD_RDIGITS; k++) {
ybit = y % 10;
y /= 10;
z += ybit*mpd_pow10[k];
}
result->data[i++] = z;
- /* scan and copy the rest of big for digit > 1 */
+ /* scan for digits > 1 and copy the rest of big */
for (; i < big->len; i++) {
y = big->data[i];
for (k = 0; k < MPD_RDIGITS; k++) {