Home
last modified time | relevance | path

Searched refs:BC_BASE_DIGS (Results 1 – 4 of 4) sorted by relevance

/external/bc/include/
Dnum.h64 #define BC_BASE_DIGS (9) macro
75 #define BC_BASE_DIGS (4) macro
136 #define BC_NUM_ROUND_POW(s) (bc_vm_growSize((s), BC_BASE_DIGS - 1))
137 #define BC_NUM_RDX(s) (BC_NUM_ROUND_POW(s) / BC_BASE_DIGS)
149 (BC_NUM_ZERO(n) || BC_NUM_RDX_VAL(n) * BC_BASE_DIGS >= (n)->scale)
151 ((!(n).len) || BC_NUM_RDX_VAL_NP(n) * BC_BASE_DIGS >= (n).scale)
257 extern const BcBigDig bc_num_pow10[BC_BASE_DIGS + 1];
/external/bc/src/
Dnum.c109 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()
[all …]
Ddata.c984 const BcBigDig bc_num_pow10[BC_BASE_DIGS + 1] = {
990 #if BC_BASE_DIGS > 4
Dbc_parse.c1085 bc_vm_printf("BC_BASE_DIGS = %lu\n", (ulong) BC_BASE_DIGS); in bc_parse_stmt()