Home
last modified time | relevance | path

Searched refs:BcBigDig (Results 1 – 11 of 11) sorted by relevance

/freebsd/contrib/bc/include/
H A Dnum.h58 typedef BclBigDig BcBigDig; typedef
63 #define BC_NUM_BIGDIG_MAX ((BcBigDig) UINT64_MAX)
84 #define BC_NUM_BIGDIG_MAX ((BcBigDig) UINT32_MAX)
250 ((n)->rdx = (((v) << 1) | ((n)->rdx & (BcBigDig) 1)))
258 ((n).rdx = (((v) << 1) | ((n).rdx & (BcBigDig) 1)))
290 #define BC_NUM_NEG(n) ((n)->rdx & ((BcBigDig) 1))
298 #define BC_NUM_NEG_NP(n) ((n).rdx & ((BcBigDig) 1))
304 #define BC_NUM_NEG_CLR(n) ((n)->rdx &= ~((BcBigDig) 1))
310 #define BC_NUM_NEG_CLR_NP(n) ((n).rdx &= ~((BcBigDig) 1))
316 #define BC_NUM_NEG_SET(n) ((n)->rdx |= ((BcBigDig) 1))
[all …]
H A Dvm.h427 #define BC_MAX_OBASE ((BcBigDig) (BC_BASE_POW))
430 #define BC_MAX_DIM ((BcBigDig) (SIZE_MAX - 1))
433 #define BC_MAX_SCALE ((BcBigDig) (BC_NUM_BIGDIG_MAX - 1))
436 #define BC_MAX_STRING ((BcBigDig) (BC_NUM_BIGDIG_MAX - 1))
447 #define BC_MAX_RAND ((BcBigDig) (((BcRand) 0) - 1))
688 BcBigDig maxes[BC_PROG_GLOBALS_LEN + BC_ENABLE_EXTRA_MATH];
691 BcBigDig last_base;
694 BcBigDig last_pow;
697 BcBigDig last_exp;
700 BcBigDig last_rem;
H A Dargs.h57 bc_args(int argc, const char* argv[], bool exit_exprs, BcBigDig* scale,
58 BcBigDig* ibase, BcBigDig* obase);
H A Dprogram.h70 BcBigDig globals[BC_PROG_GLOBALS_LEN];
178 #define BC_PROG_GLOBAL(v) (*((BcBigDig*) BC_PROG_GLOBAL_PTR(v)))
448 bc_program_assignBuiltin(BcProgram* p, bool scale, bool obase, BcBigDig val);
H A Dlang.h376 BcBigDig base;
/freebsd/contrib/bc/src/
H A Dnum.c297 if (bc_num_pow10[i] > (BcBigDig) n->num[idx]) places += 1; in bc_num_negPow10()
319 assert(((BcBigDig) BC_BASE_POW) * 2 == ((BcDig) BC_BASE_POW) * 2); in bc_num_addDigits()
413 bc_num_mulArray(const BcNum* restrict a, BcBigDig b, BcNum* restrict c) in bc_num_mulArray()
416 BcBigDig carry = 0; in bc_num_mulArray()
430 BcBigDig in = ((BcBigDig) a->num[i]) * b + carry; in bc_num_mulArray()
460 bc_num_divArray(const BcNum* restrict a, BcBigDig b, BcNum* restrict c, in bc_num_divArray()
461 BcBigDig* rem) in bc_num_divArray()
464 BcBigDig carry = 0; in bc_num_divArray()
471 BcBigDig in = ((BcBigDig) a->num[i]) + carry * BC_BASE_POW; in bc_num_divArray()
782 bc_num_shift(BcNum* restrict n, BcBigDig dig) in bc_num_shift()
[all …]
H A Dargs.c93 static BcBigDig
98 BcBigDig res; in bc_args_builtin()
152 bc_args(int argc, const char* argv[], bool exit_exprs, BcBigDig* scale, in bc_args()
153 BcBigDig* ibase, BcBigDig* obase) in bc_args()
H A Dprogram.c206 bc_program_pushBigdig(BcProgram* p, BcBigDig dig, BcResultType type) in bc_program_pushBigdig()
650 BcBigDig base = BC_PROG_IBASE(p); in bc_program_const()
857 bc_program_pushBigdig(p, (BcBigDig) rand, BC_RESULT_TEMP); in bc_program_rand()
1356 bc_program_assignBuiltin(BcProgram* p, bool scale, bool obase, BcBigDig val) in bc_program_assignBuiltin()
1358 BcBigDig* ptr_t; in bc_program_assignBuiltin()
1359 BcBigDig max, min; in bc_program_assignBuiltin()
1362 BcBigDig* ptr; in bc_program_assignBuiltin()
1538 BcBigDig scale = BC_PROG_SCALE(p); in bc_program_assign()
1569 BcBigDig val = bc_num_bigdig(l); in bc_program_assign()
1688 BcBigDig temp; in bc_program_pushArray()
[all …]
H A Dvm.c512 bc_vm_envArgs(const char* const env_args_name, BcBigDig* scale, BcBigDig* ibase,
513 BcBigDig* obase)
1563 BcBigDig scale = BC_NUM_BIGDIG_MAX;
1564 BcBigDig env_scale = BC_NUM_BIGDIG_MAX;
1565 BcBigDig ibase = BC_NUM_BIGDIG_MAX;
1566 BcBigDig env_ibase = BC_NUM_BIGDIG_MAX;
1567 BcBigDig obase = BC_NUM_BIGDIG_MAX;
1568 BcBigDig env_obase = BC_NUM_BIGDIG_MAX;
H A Ddata.c1356 const BcBigDig bc_num_pow10[BC_BASE_DIGS + 1] = {
H A Dlibrary.c1346 bc_num_parse(BCL_NUM_NUM_NP(n), val, (BcBigDig) ctxt->ibase); in bcl_parse()
1389 bc_num_print(BCL_NUM_NUM(nptr), (BcBigDig) ctxt->obase, false); in bcl_string_helper()
1499 bc_num_bigdig2num(&exp, (BcBigDig) places); in bcl_frandHelper()