• Home
  • Raw
  • Download

Lines Matching refs:BcBigDig

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()
749 BcBigDig in, temp; in bc_num_shift()
750 in = ((BcBigDig) ptr[i]); in bc_num_shift()
769 BcBigDig dig; in bc_num_shiftLeft()
795 dig = (BcBigDig) (places % BC_BASE_DIGS); in bc_num_shiftLeft()
860 BcBigDig dig; in bc_num_shiftRight()
875 dig = (BcBigDig) (places % BC_BASE_DIGS); in bc_num_shiftRight()
973 static BcBigDig
1201 BcBigDig sum = 0, carry = 0; in bc_num_m_simp()
1232 sum += ((BcBigDig) ptr_a[j]) * ((BcBigDig) ptr_b[k]); in bc_num_m_simp()
1234 if (sum >= ((BcBigDig) BC_BASE_POW) * BC_BASE_POW) in bc_num_m_simp()
1466 BcBigDig dig; in bc_num_m()
1471 dig = (BcBigDig) a->num[0]; in bc_num_m()
1476 dig = (BcBigDig) b->num[0]; in bc_num_m()
1622 bc_num_divExtend(BcNum* restrict a, BcNum* restrict b, BcBigDig divisor) in bc_num_divExtend()
1646 BcBigDig divisor; in bc_num_d_long()
1685 divisor = (BcBigDig) b->num[len - 1]; in bc_num_d_long()
1718 divisor = (BcBigDig) b->num[reallen - 1]; in bc_num_d_long()
1759 BcBigDig result; in bc_num_d_long()
1772 BcBigDig n1, dividend, quotient; in bc_num_d_long()
1776 n1 = (BcBigDig) n[len]; in bc_num_d_long()
1777 dividend = n1 * BC_BASE_POW + (BcBigDig) n[len - 1]; in bc_num_d_long()
1793 bc_num_mulArray(b, (BcBigDig) quotient, &cpb); in bc_num_d_long()
1855 BcBigDig rem; in bc_num_d()
1856 bc_num_divArray(a, (BcBigDig) b->num[0], c, &rem); in bc_num_d()
2047 BcBigDig exp; in bc_num_p()
2168 BcBigDig val; in bc_num_place()
2185 BcBigDig val; in bc_num_left()
2200 BcBigDig val; in bc_num_right()
2348 static BcBigDig
2372 return (BcBigDig) (uchar) c; in bc_num_parseChar()
2452 BcBigDig exp, pow; in bc_num_parseDecimal()
2457 exp = (BcBigDig) i; in bc_num_parseDecimal()
2472 BcBigDig dig; in bc_num_parseDecimal()
2484 dig = ((BcBigDig) n->num[idx]) + ((BcBigDig) c) * pow; in bc_num_parseDecimal()
2520 bc_num_parseBase(BcNum* restrict n, const char* restrict val, BcBigDig base) in bc_num_parseBase()
2528 BcBigDig v; in bc_num_parseBase()
2871 if (bc_num_pow10[i] > (BcBigDig) n->num[idx]) places += 1; in bc_num_printExponent()
2919 bc_num_bigdig2num(&exp, (BcBigDig) places); in bc_num_printExponent()
2942 bc_num_printFixup(BcNum* restrict n, BcBigDig rem, BcBigDig pow, size_t idx) in bc_num_printFixup()
2945 BcBigDig acc; in bc_num_printFixup()
2959 acc = ((BcBigDig) a[i]) * rem + ((BcBigDig) a[i - 1]); in bc_num_printFixup()
2966 acc += (BcBigDig) a[i]; in bc_num_printFixup()
3009 bc_num_printPrepare(BcNum* restrict n, BcBigDig rem, BcBigDig pow) in bc_num_printPrepare()
3025 assert(pow == ((BcBigDig) ((BcDig) pow))); in bc_num_printPrepare()
3051 bc_num_printNum(BcNum* restrict n, BcBigDig base, size_t len, in bc_num_printNum()
3059 BcBigDig dig = 0, acc, exp; in bc_num_printNum()
3060 BcBigDig* ptr; in bc_num_printNum()
3120 bc_vec_init(&stack, sizeof(BcBigDig), BC_DTOR_NONE); in bc_num_printNum()
3176 acc = (BcBigDig) intp.num[i]; in bc_num_printNum()
3304 bc_num_printBase(BcNum* restrict n, BcBigDig base, bool newline) in bc_num_printBase()
3425 bc_num_createFromBigdig(BcNum* restrict n, BcBigDig val) in bc_num_createFromBigdig()
3475 bc_num_parse(BcNum* restrict n, const char* restrict val, BcBigDig base) in bc_num_parse()
3491 BcBigDig dig = bc_num_parseChar(val[0], BC_NUM_MAX_LBASE); in bc_num_parse()
3501 bc_num_print(BcNum* restrict n, BcBigDig base, bool newline) in bc_num_print()
3539 BcBigDig
3554 BcBigDig r = 0; in bc_num_bigdig2()
3568 r = (BcBigDig) n->num[nrdx + 2]; in bc_num_bigdig2()
3576 r = r * BC_BASE_POW + (BcBigDig) n->num[nrdx + 1]; in bc_num_bigdig2()
3584 r = r * BC_BASE_POW + (BcBigDig) n->num[nrdx]; in bc_num_bigdig2()
3591 BcBigDig
3612 bc_num_bigdig2num(BcNum* restrict n, BcBigDig val) in bc_num_bigdig2num()
3776 bc_num_bigdig2num(&conv, (BcBigDig) s2); in bc_num_createFromRNG()
3784 bc_num_bigdig2num(&conv, (BcBigDig) s1); in bc_num_createFromRNG()
3792 bc_num_bigdig2num(&conv, (BcBigDig) i2); in bc_num_createFromRNG()
3800 bc_num_bigdig2num(&conv, (BcBigDig) i1); in bc_num_createFromRNG()
4213 BcBigDig rem; in bc_num_divmod()
4215 bc_num_divArray(ptr_a, (BcBigDig) b->num[0], c, &rem); in bc_num_divmod()