Searched refs:BcBigDig (Results 1 – 8 of 8) sorted by relevance
/external/bc/include/ |
D | num.h | 58 typedef BclBigDig BcBigDig; typedef 62 #define BC_NUM_BIGDIG_MAX ((BcBigDig) UINT64_MAX) 73 #define BC_NUM_BIGDIG_MAX ((BcBigDig) UINT32_MAX) 142 ((n)->rdx = (((v) << 1) | ((n)->rdx & (BcBigDig) 1))) 144 ((n).rdx = (((v) << 1) | ((n).rdx & (BcBigDig) 1))) 153 #define BC_NUM_NEG(n) ((n)->rdx & ((BcBigDig) 1)) 154 #define BC_NUM_NEG_NP(n) ((n).rdx & ((BcBigDig) 1)) 155 #define BC_NUM_NEG_CLR(n) ((n)->rdx &= ~((BcBigDig) 1)) 156 #define BC_NUM_NEG_CLR_NP(n) ((n).rdx &= ~((BcBigDig) 1)) 157 #define BC_NUM_NEG_SET(n) ((n)->rdx |= ((BcBigDig) 1)) [all …]
|
D | vm.h | 171 #define BC_MAX_OBASE ((BcBigDig) (BC_BASE_POW)) 172 #define BC_MAX_DIM ((BcBigDig) (SIZE_MAX - 1)) 173 #define BC_MAX_SCALE ((BcBigDig) (BC_NUM_BIGDIG_MAX - 1)) 174 #define BC_MAX_STRING ((BcBigDig) (BC_NUM_BIGDIG_MAX - 1)) 179 #define BC_MAX_RAND ((BcBigDig) (((BcRand) 0) - 1)) 371 BcBigDig maxes[BC_PROG_GLOBALS_LEN + BC_ENABLE_EXTRA_MATH]; 396 BcBigDig last_base; 397 BcBigDig last_pow; 398 BcBigDig last_exp; 399 BcBigDig last_rem;
|
D | program.h | 61 BcBigDig globals[BC_PROG_GLOBALS_LEN]; 88 BcBigDig strm; 113 #define BC_PROG_GLOBAL(v) (*((BcBigDig*) BC_PROG_GLOBAL_PTR(v)))
|
D | lang.h | 223 BcBigDig base;
|
/external/bc/src/ |
D | num.c | 135 assert(((BcBigDig) BC_BASE_POW) * 2 == ((BcDig) BC_BASE_POW) * 2); in bc_num_addDigits() 186 static void bc_num_mulArray(const BcNum *restrict a, BcBigDig b, in bc_num_mulArray() 190 BcBigDig carry = 0; in bc_num_mulArray() 199 BcBigDig in = ((BcBigDig) a->num[i]) * b + carry; in bc_num_mulArray() 216 static void bc_num_divArray(const BcNum *restrict a, BcBigDig b, in bc_num_divArray() 217 BcNum *restrict c, BcBigDig *rem) in bc_num_divArray() 220 BcBigDig carry = 0; in bc_num_divArray() 225 BcBigDig in = ((BcBigDig) a->num[i]) + carry * BC_BASE_POW; in bc_num_divArray() 414 static void bc_num_shift(BcNum *restrict n, BcBigDig dig) { in bc_num_shift() 417 BcBigDig carry = 0, pow; in bc_num_shift() [all …]
|
D | program.c | 121 static void bc_program_pushBigdig(BcProgram *p, BcBigDig dig, BcResultType type) in bc_program_pushBigdig() 383 BcBigDig base = BC_PROG_IBASE(p); in bc_program_const() 502 bc_program_pushBigdig(p, (BcBigDig) rand, BC_RESULT_TEMP); in bc_program_rand() 886 BcBigDig scale = BC_PROG_SCALE(p); in bc_program_assign() 904 BcBigDig *ptr, *ptr_t, val, max, min; in bc_program_assign() 999 BcBigDig temp; in bc_program_pushArray() 1241 BcBigDig val = 0; in bc_program_builtin() 1253 val = (BcBigDig) v->len; in bc_program_builtin() 1266 val = (BcBigDig) strlen(str); in bc_program_builtin() 1271 val = (BcBigDig) bc_num_len(num); in bc_program_builtin() [all …]
|
D | data.c | 984 const BcBigDig bc_num_pow10[BC_BASE_DIGS + 1] = {
|
D | library.c | 860 bc_num_parse(&n, val, (BcBigDig) ctxt->ibase); in bcl_parse() 894 bc_num_print(nptr, (BcBigDig) ctxt->obase, false); in bcl_string() 963 bc_num_bigdig2num(&exp, (BcBigDig) places); in bcl_frandHelper()
|