Searched refs:BcBigDig (Results 1 – 11 of 11) sorted by relevance
/external/bc/include/ |
D | num.h | 58 typedef BclBigDig BcBigDig; typedef 63 #define BC_NUM_BIGDIG_MAX ((BcBigDig) UINT64_MAX) 80 #define BC_NUM_BIGDIG_MAX ((BcBigDig) UINT32_MAX) 242 ((n)->rdx = (((v) << 1) | ((n)->rdx & (BcBigDig) 1))) 250 ((n).rdx = (((v) << 1) | ((n).rdx & (BcBigDig) 1))) 282 #define BC_NUM_NEG(n) ((n)->rdx & ((BcBigDig) 1)) 290 #define BC_NUM_NEG_NP(n) ((n).rdx & ((BcBigDig) 1)) 296 #define BC_NUM_NEG_CLR(n) ((n)->rdx &= ~((BcBigDig) 1)) 302 #define BC_NUM_NEG_CLR_NP(n) ((n).rdx &= ~((BcBigDig) 1)) 308 #define BC_NUM_NEG_SET(n) ((n)->rdx |= ((BcBigDig) 1)) [all …]
|
D | vm.h | 428 #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;
|
D | args.h | 57 bc_args(int argc, char* argv[], bool exit_exprs, BcBigDig* scale, 58 BcBigDig* ibase, BcBigDig* obase);
|
D | program.h | 70 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);
|
D | lang.h | 376 BcBigDig base;
|
/external/bc/src/ |
D | num.c | 268 assert(((BcBigDig) BC_BASE_POW) * 2 == ((BcDig) BC_BASE_POW) * 2); in bc_num_addDigits() 362 bc_num_mulArray(const BcNum* restrict a, BcBigDig b, BcNum* restrict c) in bc_num_mulArray() 365 BcBigDig carry = 0; in bc_num_mulArray() 379 BcBigDig in = ((BcBigDig) a->num[i]) * b + carry; in bc_num_mulArray() 409 bc_num_divArray(const BcNum* restrict a, BcBigDig b, BcNum* restrict c, in bc_num_divArray() 410 BcBigDig* rem) in bc_num_divArray() 413 BcBigDig carry = 0; in bc_num_divArray() 420 BcBigDig in = ((BcBigDig) a->num[i]) + carry * BC_BASE_POW; in bc_num_divArray() 733 bc_num_shift(BcNum* restrict n, BcBigDig dig) in bc_num_shift() 736 BcBigDig carry = 0, pow; in bc_num_shift() [all …]
|
D | args.c | 93 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()
|
D | program.c | 206 bc_program_pushBigdig(BcProgram* p, BcBigDig dig, BcResultType type) in bc_program_pushBigdig() 647 BcBigDig base = BC_PROG_IBASE(p); in bc_program_const() 847 bc_program_pushBigdig(p, (BcBigDig) rand, BC_RESULT_TEMP); in bc_program_rand() 1342 bc_program_assignBuiltin(BcProgram* p, bool scale, bool obase, BcBigDig val) in bc_program_assignBuiltin() 1344 BcBigDig* ptr_t; in bc_program_assignBuiltin() 1345 BcBigDig max, min; in bc_program_assignBuiltin() 1348 BcBigDig* ptr; in bc_program_assignBuiltin() 1524 BcBigDig scale = BC_PROG_SCALE(p); in bc_program_assign() 1555 BcBigDig val = bc_num_bigdig(l); in bc_program_assign() 1674 BcBigDig temp; in bc_program_pushArray() [all …]
|
D | vm.c | 516 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;
|
D | data.c | 1297 const BcBigDig bc_num_pow10[BC_BASE_DIGS + 1] = {
|
D | library.c | 1346 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()
|