Lines Matching refs:blk
33 blk[i] = 0; in setBlock()
43 blk[j] = 0; in setBlock()
46 blk[i] = newBlock; in setBlock()
86 if (blk[i] == x.blk[i]) in compareTo()
88 else if (blk[i] > x.blk[i]) in compareTo()
160 temp = a2->blk[i] + b2->blk[i]; in add()
163 carryOut = (temp < a2->blk[i]); in add()
169 blk[i] = temp; // Save the addition result in add()
175 temp = a2->blk[i] + 1; in add()
177 blk[i] = temp; in add()
182 blk[i] = a2->blk[i]; in add()
185 blk[i] = 1; in add()
208 temp = a.blk[i] - b.blk[i]; in subtract()
211 borrowOut = (temp > a.blk[i]); in subtract()
217 blk[i] = temp; // Save the subtraction result in subtract()
223 borrowIn = (a.blk[i] == 0); in subtract()
224 blk[i] = a.blk[i] - 1; in subtract()
235 blk[i] = a.blk[i]; in subtract()
300 BigUnsigned::Blk part1 = (x == 0 || y == 0) ? 0 : (num.blk[x - 1] >> (BigUnsigned::N - y)); in getShiftedBlock()
301 BigUnsigned::Blk part2 = (x == num.len) ? 0 : (num.blk[x] << y); in getShiftedBlock()
329 blk[i] = 0; in multiply()
334 if ((a.blk[i] & (Blk(1) << i2)) == 0) in multiply()
354 temp = blk[k] + getShiftedBlock(b, j, i2); in multiply()
355 carryOut = (temp < blk[k]); in multiply()
360 blk[k] = temp; in multiply()
366 blk[k]++; in multiply()
367 carryIn = (blk[k] == 0); in multiply()
372 if (blk[len - 1] == 0) in multiply()
469 blk[origLen] = 0; // Zero the added block. in divideWithRemainder()
479 q.blk[i] = 0; in divideWithRemainder()
487 q.blk[i] = 0; in divideWithRemainder()
500 temp = blk[k] - getShiftedBlock(b, j, i2); in divideWithRemainder()
501 borrowOut = (temp > blk[k]); in divideWithRemainder()
513 borrowIn = (blk[k] == 0); in divideWithRemainder()
514 subtractBuf[k] = blk[k] - 1; in divideWithRemainder()
527 q.blk[i] |= (Blk(1) << i2); in divideWithRemainder()
530 blk[k] = subtractBuf[k]; in divideWithRemainder()
536 if (q.blk[q.len - 1] == 0) in divideWithRemainder()
556 blk[i] = a.blk[i] & b.blk[i]; in bitAnd()
573 blk[i] = a2->blk[i] | b2->blk[i]; in bitOr()
575 blk[i] = a2->blk[i]; in bitOr()
593 blk[i] = a2->blk[i] ^ b2->blk[i]; in bitXor()
595 blk[i] = a2->blk[i]; in bitXor()
617 blk[i] = 0; in bitShiftLeft()
619 blk[i] = getShiftedBlock(a, j, shiftBits); in bitShiftLeft()
621 if (blk[len - 1] == 0) in bitShiftLeft()
653 blk[i] = getShiftedBlock(a, j, leftShiftBits); in bitShiftRight()
655 if (blk[len - 1] == 0) in bitShiftRight()
666 blk[i]++; in operator ++()
667 carry = (blk[i] == 0); in operator ++()
673 blk[i] = 1; in operator ++()
689 borrow = (blk[i] == 0); in operator --()
690 blk[i]--; in operator --()
693 if (blk[len - 1] == 0) in operator --()