Home
last modified time | relevance | path

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

/freebsd-13.1/contrib/bc/include/
H A Dnum.h62 typedef BclBigDig BcBigDig; typedef
67 #define BC_NUM_BIGDIG_MAX ((BcBigDig) UINT64_MAX)
84 #define BC_NUM_BIGDIG_MAX ((BcBigDig) UINT32_MAX)
246 ((n)->rdx = (((v) << 1) | ((n)->rdx & (BcBigDig) 1)))
254 ((n).rdx = (((v) << 1) | ((n).rdx & (BcBigDig) 1)))
287 #define BC_NUM_NEG(n) ((n)->rdx & ((BcBigDig) 1))
295 #define BC_NUM_NEG_NP(n) ((n).rdx & ((BcBigDig) 1))
313 #define BC_NUM_NEG_SET(n) ((n)->rdx |= ((BcBigDig) 1))
319 #define BC_NUM_NEG_TGL(n) ((n)->rdx ^= ((BcBigDig) 1))
495 BcBigDig bc_num_bigdig(const BcNum *restrict n);
[all …]
H A Dvm.h293 #define BC_MAX_OBASE ((BcBigDig) (BC_BASE_POW))
296 #define BC_MAX_DIM ((BcBigDig) (SIZE_MAX - 1))
299 #define BC_MAX_SCALE ((BcBigDig) (BC_NUM_BIGDIG_MAX - 1))
302 #define BC_MAX_STRING ((BcBigDig) (BC_NUM_BIGDIG_MAX - 1))
313 #define BC_MAX_RAND ((BcBigDig) (((BcRand) 0) - 1))
506 BcBigDig maxes[BC_PROG_GLOBALS_LEN + BC_ENABLE_EXTRA_MATH];
556 BcBigDig last_base;
559 BcBigDig last_pow;
562 BcBigDig last_exp;
565 BcBigDig last_rem;
H A Dprogram.h70 BcBigDig globals[BC_PROG_GLOBALS_LEN];
159 #define BC_PROG_GLOBAL(v) (*((BcBigDig*) BC_PROG_GLOBAL_PTR(v)))
H A Dlang.h364 BcBigDig base;
/freebsd-13.1/contrib/bc/src/
H A Dnum.c319 BcBigDig in = ((BcBigDig) a->num[i]) * b + carry; in bc_num_mulArray()
357 BcBigDig in = ((BcBigDig) a->num[i]) + carry * BC_BASE_POW; in bc_num_divArray()
674 BcBigDig dig; in bc_num_shiftLeft()
757 BcBigDig dig; in bc_num_shiftRight()
1097 sum += ((BcBigDig) ptr_a[j]) * ((BcBigDig) ptr_b[k]); in bc_num_m_simp()
1824 BcBigDig exp; in bc_num_p()
1923 BcBigDig val; in bc_num_place()
1939 BcBigDig val; in bc_num_left()
1953 BcBigDig val; in bc_num_right()
2242 BcBigDig v; in bc_num_parseBase()
[all …]
H A Dprogram.c593 BcBigDig base = BC_PROG_IBASE(p); in bc_program_const()
1349 BcBigDig scale = BC_PROG_SCALE(p); in bc_program_assign()
1525 BcBigDig temp; in bc_program_pushArray()
1871 BcBigDig val = 0; in bc_program_builtin()
1891 val = (BcBigDig) v->len; in bc_program_builtin()
1902 val = (BcBigDig) strlen(str); in bc_program_builtin()
1907 val = (BcBigDig) bc_num_len(num); in bc_program_builtin()
2016 BcBigDig val; in bc_program_asciifyNum()
2169 BcBigDig val; in bc_program_nquit()
2193 else val -= (BcBigDig) calls; in bc_program_nquit()
[all …]
H A Dlibrary.c934 bc_num_parse(&n, val, (BcBigDig) ctxt->ibase); in bcl_parse()
971 bc_num_print(nptr, (BcBigDig) ctxt->obase, false); in bcl_string()
1054 bc_num_bigdig2num(&exp, (BcBigDig) places); in bcl_frandHelper()
H A Ddata.c1258 const BcBigDig bc_num_pow10[BC_BASE_DIGS + 1] = {