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))
316 #define BC_NUM_NEG_SET(n) ((n)->rdx |= ((BcBigDig) 1))
507 BcBigDig
516 BcBigDig
[all …]
H A Dvm.h428 #define BC_MAX_OBASE ((BcBigDig) (BC_BASE_POW))
431 #define BC_MAX_DIM ((BcBigDig) (SIZE_MAX - 1))
434 #define BC_MAX_SCALE ((BcBigDig) (BC_NUM_BIGDIG_MAX - 1))
437 #define BC_MAX_STRING ((BcBigDig) (BC_NUM_BIGDIG_MAX - 1))
448 #define BC_MAX_RAND ((BcBigDig) (((BcRand) 0) - 1))
689 BcBigDig maxes[BC_PROG_GLOBALS_LEN + BC_ENABLE_EXTRA_MATH];
692 BcBigDig last_base;
695 BcBigDig last_pow;
698 BcBigDig last_exp;
701 BcBigDig last_rem;
H A Dargs.h57 bc_args(int argc, char* argv[], bool exit_exprs, BcBigDig* scale,
58 BcBigDig* ibase, BcBigDig* obase);
H A Dprogram.h70 BcBigDig globals[BC_PROG_GLOBALS_LEN];
175 #define BC_PROG_GLOBAL(v) (*((BcBigDig*) BC_PROG_GLOBAL_PTR(v)))
440 bc_program_assignBuiltin(BcProgram* p, bool scale, bool obase, BcBigDig val);
H A Dlang.h376 BcBigDig base;
/freebsd/contrib/bc/src/
H A Dnum.c379 BcBigDig in = ((BcBigDig) a->num[i]) * b + carry; in bc_num_mulArray()
420 BcBigDig in = ((BcBigDig) a->num[i]) + carry * BC_BASE_POW; in bc_num_divArray()
769 BcBigDig dig; in bc_num_shiftLeft()
860 BcBigDig dig; in bc_num_shiftRight()
1232 sum += ((BcBigDig) ptr_a[j]) * ((BcBigDig) ptr_b[k]); in bc_num_m_simp()
2047 BcBigDig exp; in bc_num_p()
2168 BcBigDig val; in bc_num_place()
2528 BcBigDig v; in bc_num_parseBase()
2959 acc = ((BcBigDig) a[i]) * rem + ((BcBigDig) a[i - 1]); in bc_num_printFixup()
3558 BcBigDig
[all …]
H A Dargs.c93 static BcBigDig
98 BcBigDig res; in bc_args_builtin()
152 bc_args(int argc, char* argv[], bool exit_exprs, BcBigDig* scale, in bc_args()
153 BcBigDig* ibase, BcBigDig* obase) in bc_args()
H A Dprogram.c647 BcBigDig base = BC_PROG_IBASE(p); in bc_program_const()
1344 BcBigDig* ptr_t; in bc_program_assignBuiltin()
1345 BcBigDig max, min; in bc_program_assignBuiltin()
1348 BcBigDig* ptr; in bc_program_assignBuiltin()
1674 BcBigDig temp; in bc_program_pushArray()
2045 BcBigDig val = 0; in bc_program_builtin()
2070 val = (BcBigDig) v->len; in bc_program_builtin()
2416 BcBigDig val; in bc_program_nquit()
2440 else val -= (BcBigDig) calls; in bc_program_nquit()
2696 BcBigDig val; in bc_program_globalSetting()
[all …]
H A Dvm.c516 bc_vm_envArgs(const char* const env_args_name, BcBigDig* scale, BcBigDig* ibase,
517 BcBigDig* obase)
1542 BcBigDig scale = BC_NUM_BIGDIG_MAX;
1543 BcBigDig env_scale = BC_NUM_BIGDIG_MAX;
1544 BcBigDig ibase = BC_NUM_BIGDIG_MAX;
1545 BcBigDig env_ibase = BC_NUM_BIGDIG_MAX;
1546 BcBigDig obase = BC_NUM_BIGDIG_MAX;
1547 BcBigDig env_obase = BC_NUM_BIGDIG_MAX;
H A Ddata.c1297 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()