• Home
  • Raw
  • Download

Lines Matching refs:BC_BASE_DIGS

109 	assert(len - 1 <= BC_BASE_DIGS + 1);  in bc_num_log10()
116 return BC_BASE_DIGS - bc_num_log10((size_t) *n); in bc_num_zeroDigits()
120 size_t digits = bc_num_int(n) * BC_BASE_DIGS; in bc_num_intDigits()
318 pow = n->scale % BC_BASE_DIGS; in bc_num_truncate()
319 pow = pow ? BC_BASE_DIGS - pow : 0; in bc_num_truncate()
420 assert(dig < BC_BASE_DIGS); in bc_num_shift()
423 dig = bc_num_pow10[BC_BASE_DIGS - dig]; in bc_num_shift()
453 dig = (BcBigDig) (places % BC_BASE_DIGS); in bc_num_shiftLeft()
463 size_t mod = n->scale % BC_BASE_DIGS, revdig; in bc_num_shiftLeft()
465 mod = mod ? mod : BC_BASE_DIGS; in bc_num_shiftLeft()
466 revdig = dig ? BC_BASE_DIGS - dig : 0; in bc_num_shiftLeft()
468 if (mod + revdig > BC_BASE_DIGS) places_rdx = 1; in bc_num_shiftLeft()
490 if (shift) bc_num_shift(n, BC_BASE_DIGS - dig); in bc_num_shiftLeft()
508 dig = (BcBigDig) (places % BC_BASE_DIGS); in bc_num_shiftRight()
511 scale_mod = scale % BC_BASE_DIGS; in bc_num_shiftRight()
512 scale_mod = scale_mod ? scale_mod : BC_BASE_DIGS; in bc_num_shiftRight()
516 if (scale_mod + dig > BC_BASE_DIGS) { in bc_num_shiftRight()
528 bc_num_extend(n, places_rdx * BC_BASE_DIGS); in bc_num_shiftRight()
943 ardx = BC_NUM_RDX_VAL_NP(cpa) * BC_BASE_DIGS; in bc_num_m()
946 brdx = BC_NUM_RDX_VAL_NP(cpb) * BC_BASE_DIGS; in bc_num_m()
972 bc_num_shiftLeft(c, (len - c->len) * BC_BASE_DIGS); in bc_num_m()
1014 pow = BC_BASE_DIGS - bc_num_log10((size_t) divisor); in bc_num_divExtend()
1044 nonzero = (divisor > 1 << ((10 * BC_BASE_DIGS) / 6 + 1)); in bc_num_d_long()
1169 bc_num_extend(&cpa, (len - cpa.len) * BC_BASE_DIGS); in bc_num_d()
1173 cpa.scale = cpardx * BC_BASE_DIGS; in bc_num_d()
1178 cpa.scale = cpardx * BC_BASE_DIGS; in bc_num_d()
1183 cpa.scale = cpardx * BC_BASE_DIGS; in bc_num_d()
1521 mod = n->scale % BC_BASE_DIGS; in bc_num_parseDecimal()
1522 i = mod ? BC_BASE_DIGS - mod : 0; in bc_num_parseDecimal()
1523 n->len = ((temp + i) / BC_BASE_DIGS); in bc_num_parseDecimal()
1549 size_t idx = exp / BC_BASE_DIGS; in bc_num_parseDecimal()
1554 if ((exp + 1) % BC_BASE_DIGS == 0) pow = 1; in bc_num_parseDecimal()
1708 size_t buffer[BC_BASE_DIGS]; in bc_num_printDecimal()
1719 temp = n->scale % BC_BASE_DIGS; in bc_num_printDecimal()
1720 temp = i || !temp ? 0 : BC_BASE_DIGS - temp; in bc_num_printDecimal()
1722 memset(buffer, 0, BC_BASE_DIGS * sizeof(size_t)); in bc_num_printDecimal()
1724 for (j = 0; n9 && j < BC_BASE_DIGS; ++j) { in bc_num_printDecimal()
1729 for (j = BC_BASE_DIGS - 1; j < BC_BASE_DIGS && j >= temp; --j) { in bc_num_printDecimal()
1730 bool print_rdx = (irdx & (j == BC_BASE_DIGS - 1)); in bc_num_printDecimal()
1759 for (i = BC_BASE_DIGS - 1; i < BC_BASE_DIGS; --i) { in bc_num_printExponent()
1764 places += (nrdx - (idx + 1)) * BC_BASE_DIGS; in bc_num_printExponent()
2149 scale = n->scale % BC_BASE_DIGS; in bc_num_len()
2150 scale = scale ? scale : BC_BASE_DIGS; in bc_num_len()
2154 len = len * BC_BASE_DIGS - zero - (BC_BASE_DIGS - scale); in bc_num_len()
2740 resscale = (scale + BC_BASE_DIGS) + 2; in bc_num_sqrt()
2950 if (scale / BC_BASE_DIGS != BC_NUM_RDX_VAL(n) - i - 1) in bc_num_dump()
2954 int mod = scale % BC_BASE_DIGS; in bc_num_dump()
2955 int d = BC_BASE_DIGS - mod; in bc_num_dump()