Skip to content

Commit ed41210

Browse files
committed
Use the preprocessor
1 parent a73d289 commit ed41210

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

ext/bcmath/libbcmath/src/recmul.c

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -259,14 +259,14 @@ static void bc_standard_mul(bc_num n1, size_t n1len, bc_num n2, size_t n2len, bc
259259
char *pend = pptr + prodlen - 1;
260260
i = 0;
261261
while (i < prod_arr_size - 1) {
262-
if (BC_MUL_UINT_DIGITS == 4) {
263-
bc_write_bcd_representation(prod_uint[i], pend - 3);
264-
pend -= 4;
265-
} else {
266-
bc_write_bcd_representation(prod_uint[i] / 10000, pend - 7);
267-
bc_write_bcd_representation(prod_uint[i] % 10000, pend - 3);
268-
pend -= 8;
269-
}
262+
#if BC_MUL_UINT_DIGITS == 4
263+
bc_write_bcd_representation(prod_uint[i], pend - 3);
264+
pend -= 4;
265+
#else
266+
bc_write_bcd_representation(prod_uint[i] / 10000, pend - 7);
267+
bc_write_bcd_representation(prod_uint[i] % 10000, pend - 3);
268+
pend -= 8;
269+
#endif
270270
i++;
271271
}
272272

0 commit comments

Comments
 (0)