Home
last modified time | relevance | path

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

/external/bc/include/
Dnum.h74 typedef uint_fast64_t BcBigDig; typedef
87 typedef uint_fast32_t BcBigDig; typedef
127 #define BC_NUM_BIGDIG_LOG10 ((CHAR_BIT * sizeof(BcBigDig) + 1) / 2 + 1)
163 void bc_num_createFromBigdig(BcNum *n, BcBigDig val);
169 BcStatus bc_num_bigdig(const BcNum *restrict n, BcBigDig *result);
170 void bc_num_bigdig2num(BcNum *restrict n, BcBigDig val);
205 BcBigDig base, bool letter);
206 BcStatus bc_num_print(BcNum *restrict n, BcBigDig base, bool newline);
208 BcStatus bc_num_stream(BcNum *restrict n, BcBigDig base);
219 extern const BcBigDig bc_num_pow10[BC_BASE_DIGS + 1];
Dvm.h180 BcBigDig maxes[BC_PROG_GLOBALS_LEN];
203 BcBigDig last_base;
204 BcBigDig last_pow;
205 BcBigDig last_exp;
206 BcBigDig last_rem;
Dprogram.h55 BcBigDig globals[BC_PROG_GLOBALS_LEN];
75 BcBigDig strm;
98 #define BC_PROG_GLOBAL(v) (*((BcBigDig*) BC_PROG_GLOBAL_PTR(v)))
Dlang.h209 BcBigDig base;
/external/bc/src/
Dnum.c124 assert(((BcBigDig) BC_BASE_POW) * 2 == ((BcDig) BC_BASE_POW) * 2); in bc_num_addDigits()
183 static BcStatus bc_num_mulArray(const BcNum *restrict a, BcBigDig b, in bc_num_mulArray()
187 BcBigDig carry = 0; in bc_num_mulArray()
196 BcBigDig in = ((BcBigDig) a->num[i]) * b + carry; in bc_num_mulArray()
217 static BcStatus bc_num_divArray(const BcNum *restrict a, BcBigDig b, in bc_num_divArray()
218 BcNum *restrict c, BcBigDig *rem) in bc_num_divArray()
221 BcBigDig carry = 0; in bc_num_divArray()
226 BcBigDig in = ((BcBigDig) a->num[i]) + carry * BC_BASE_POW; in bc_num_divArray()
414 static BcStatus bc_num_shift(BcNum *restrict n, BcBigDig dig) { in bc_num_shift()
417 BcBigDig carry = 0, pow; in bc_num_shift()
[all …]
Dprogram.c179 BcBigDig base = BC_PROG_IBASE(p); in bc_program_num()
854 BcBigDig scale = BC_PROG_SCALE(p); in bc_program_assign()
870 BcBigDig *ptr, *ptr_t, val, max, min; in bc_program_assign()
954 BcBigDig temp; in bc_program_pushArray()
1185 BcBigDig val = 0; in bc_program_builtin()
1190 val = (BcBigDig) ((BcVec*) num)->len; in bc_program_builtin()
1198 val = (BcBigDig) strlen(bc_program_str(p, idx)); in bc_program_builtin()
1203 val = (BcBigDig) bc_num_len(num); in bc_program_builtin()
1208 val = (BcBigDig) bc_num_scale(num); in bc_program_builtin()
1286 bc_num_createFromBigdig(&res.d.n, (BcBigDig) p->results.len); in bc_program_stackLen()
[all …]
Ddata.c858 const BcBigDig bc_num_pow10[BC_BASE_DIGS + 1] = {