• Home
  • Raw
  • Download

Lines Matching refs:Chunk

50 Bignum::Chunk& Bignum::RawBigit(const int index) {  in RawBigit()
56 const Bignum::Chunk& Bignum::RawBigit(const int index) const { in RawBigit()
200 Chunk carry = 0; in AddBignum()
207 const Chunk my = (bigit_pos < used_bigits_) ? RawBigit(bigit_pos) : 0; in AddBignum()
208 const Chunk sum = my + other.RawBigit(i) + carry; in AddBignum()
214 const Chunk my = (bigit_pos < used_bigits_) ? RawBigit(bigit_pos) : 0; in AddBignum()
215 const Chunk sum = my + carry; in AddBignum()
234 Chunk borrow = 0; in SubtractBignum()
238 const Chunk difference = RawBigit(i + offset) - other.RawBigit(i) - borrow; in SubtractBignum()
243 const Chunk difference = RawBigit(i + offset) - borrow; in SubtractBignum()
280 RawBigit(i) = static_cast<Chunk>(product & kBigitMask); in MultiplyByUInt32()
402 const Chunk chunk1 = RawBigit(copy_offset + bigit_index1); in Square()
403 const Chunk chunk2 = RawBigit(copy_offset + bigit_index2); in Square()
408 RawBigit(i) = static_cast<Chunk>(accumulator) & kBigitMask; in Square()
417 const Chunk chunk1 = RawBigit(copy_offset + bigit_index1); in Square()
418 const Chunk chunk2 = RawBigit(copy_offset + bigit_index2); in Square()
426 RawBigit(i) = static_cast<Chunk>(accumulator) & kBigitMask; in Square()
549 const Chunk this_bigit = RawBigit(used_bigits_ - 1); in DivideModuloIntBignum()
550 const Chunk other_bigit = other.RawBigit(other.used_bigits_ - 1); in DivideModuloIntBignum()
630 Chunk current_bigit = RawBigit(i); in ToHexString()
637 Chunk most_significant_bigit = RawBigit(used_bigits_ - 1); in ToHexString()
646 Bignum::Chunk Bignum::BigitOrZero(const int index) const { in BigitOrZero()
669 const Chunk bigit_a = a.BigitOrZero(i); in Compare()
670 const Chunk bigit_b = b.BigitOrZero(i); in Compare()
703 Chunk borrow = 0; in PlusCompare()
707 const Chunk chunk_a = a.BigitOrZero(i); in PlusCompare()
708 const Chunk chunk_b = b.BigitOrZero(i); in PlusCompare()
709 const Chunk chunk_c = c.BigitOrZero(i); in PlusCompare()
710 const Chunk sum = chunk_a + chunk_b; in PlusCompare()
767 Chunk carry = 0; in BigitsShiftLeft()
769 const Chunk new_carry = RawBigit(i) >> (kBigitSize - shift_amount); in BigitsShiftLeft()
788 Chunk borrow = 0; in SubtractTimes()
793 const Chunk difference = RawBigit(i + exponent_diff) - (remove & kBigitMask); in SubtractTimes()
795 borrow = static_cast<Chunk>((difference >> (kChunkSize - 1)) + in SubtractTimes()
802 const Chunk difference = RawBigit(i) - borrow; in SubtractTimes()