Lines Matching refs:carry
170 Chunk carry = 0; in AddBignum() local
174 Chunk sum = bigits_[bigit_pos] + other.bigits_[i] + carry; in AddBignum()
176 carry = sum >> kBigitSize; in AddBignum()
180 while (carry != 0) { in AddBignum()
181 Chunk sum = bigits_[bigit_pos] + carry; in AddBignum()
183 carry = sum >> kBigitSize; in AddBignum()
238 DoubleChunk carry = 0; in MultiplyByUInt32() local
240 DoubleChunk product = static_cast<DoubleChunk>(factor) * bigits_[i] + carry; in MultiplyByUInt32()
242 carry = (product >> kBigitSize); in MultiplyByUInt32()
244 while (carry != 0) { in MultiplyByUInt32()
246 bigits_[used_digits_] = static_cast<Chunk>(carry & kBigitMask); in MultiplyByUInt32()
248 carry >>= kBigitSize; in MultiplyByUInt32()
260 uint64_t carry = 0; in MultiplyByUInt64() local
266 uint64_t tmp = (carry & kBigitMask) + product_low; in MultiplyByUInt64()
268 carry = (carry >> kBigitSize) + (tmp >> kBigitSize) + in MultiplyByUInt64()
271 while (carry != 0) { in MultiplyByUInt64()
273 bigits_[used_digits_] = static_cast<Chunk>(carry & kBigitMask); in MultiplyByUInt64()
275 carry >>= kBigitSize; in MultiplyByUInt64()
695 Chunk carry = 0; in BigitsShiftLeft() local
698 bigits_[i] = ((bigits_[i] << shift_amount) + carry) & kBigitMask; in BigitsShiftLeft()
699 carry = new_carry; in BigitsShiftLeft()
701 if (carry != 0) { in BigitsShiftLeft()
702 bigits_[used_digits_] = carry; in BigitsShiftLeft()