Lines Matching defs:factor
251 void Bignum::MultiplyByUInt32(uint32_t factor) {
252 if (factor == 1) return;
253 if (factor == 0) {
259 // The product of a bigit with the factor is of size kBigitSize + 32.
264 DoubleChunk product = static_cast<DoubleChunk>(factor) * bigits_[i] + carry;
277 void Bignum::MultiplyByUInt64(uint64_t factor) {
278 if (factor == 1) return;
279 if (factor == 0) {
285 uint64_t low = factor & 0xFFFFFFFF;
286 uint64_t high = factor >> 32;
739 void Bignum::SubtractTimes(const Bignum& other, int factor) {
744 b.MultiplyByUInt32(factor);
748 if (factor < 3) {
749 for (int i = 0; i < factor; ++i) {
757 DoubleChunk product = static_cast<DoubleChunk>(factor) * other.bigits_[i];