Searched refs:borrow (Results 1 – 3 of 3) sorted by relevance
/libcore/ojluni/src/main/java/jdk/internal/math/ |
D | FDBigInteger.java | 809 long borrow = 0L; in leftInplaceSub() local 812 long diff = (mData[mIndex] & LONG_MASK) - (sData[sIndex] & LONG_MASK) + borrow; in leftInplaceSub() 814 borrow = diff >> 32; // signed shift in leftInplaceSub() 816 for (; borrow != 0 && mIndex < minLen; mIndex++) { in leftInplaceSub() 817 long diff = (mData[mIndex] & LONG_MASK) + borrow; in leftInplaceSub() 819 borrow = diff >> 32; // signed shift in leftInplaceSub() 821 assert borrow == 0L : borrow; // borrow out of subtract, in leftInplaceSub() 889 long borrow = 0L; in rightInplaceSub() local 891 long diff = 0L - (sData[sIndex] & LONG_MASK) + borrow; in rightInplaceSub() 893 borrow = diff >> 32; // signed shift in rightInplaceSub() [all …]
|
/libcore/ojluni/src/main/java/java/math/ |
D | BigInteger.java | 1466 boolean borrow = (difference >> 32 != 0); in subtract() 1467 if (borrow) { in subtract() 1507 boolean borrow = (difference >> 32 != 0); in subtract() 1508 while (bigIndex > 0 && borrow) in subtract() 1509 borrow = ((result[--bigIndex] = big[bigIndex] - 1) == -1); in subtract() 1562 boolean borrow = (difference >> 32 != 0); in subtract() 1563 while (bigIndex > 0 && borrow) in subtract() 1564 borrow = ((result[--bigIndex] = big[bigIndex] - 1) == -1); in subtract() 2056 long x, w, q, borrow; in exactDivideBy3() local 2057 borrow = 0L; in exactDivideBy3() [all …]
|
D | MutableBigInteger.java | 1595 int borrow = mulsub(rem.value, divisor, qhat, dlen, j+rem.offset); in divideMagnitude() local 1598 if (borrow + 0x80000000 > nh2) { in divideMagnitude() 1651 int borrow; in divideMagnitude() 1654 borrow = mulsub(rem.value, divisor, qhat, dlen, limit - 1 + rem.offset); in divideMagnitude() 1656 borrow = mulsubBorrow(rem.value, divisor, qhat, dlen, limit - 1 + rem.offset); in divideMagnitude() 1659 if (borrow + 0x80000000 > nh2) { in divideMagnitude() 1770 int borrow = mulsubLong(rem.value, dh, dl, qhat, j + rem.offset); 1773 if (borrow + 0x80000000 > nh2) {
|