Home
last modified time | relevance | path

Searched refs:borrow (Results 1 – 25 of 94) sorted by relevance

1234

/third_party/skia/third_party/externals/swiftshader/third_party/marl/src/
Dpool_test.cpp42 pool.borrow(); in TEST_P()
52 pool.borrow(); in TEST_P()
62 pool.borrow(); in TEST_P()
72 pool.borrow(); in TEST_P()
99 auto loan = pool.borrow(); in TEST_P()
106 auto loan = pool.borrow(); in TEST_P()
120 auto loan = pool.borrow(); in TEST_P()
127 auto loan = pool.borrow(); in TEST_P()
141 auto loan = pool.borrow(); in TEST_P()
149 auto loan = pool.borrow(); in TEST_P()
[all …]
/third_party/icu/icu4c/source/i18n/
Ddouble-conversion-bignum.cpp234 Chunk borrow = 0; in SubtractBignum() local
237 DOUBLE_CONVERSION_ASSERT((borrow == 0) || (borrow == 1)); in SubtractBignum()
238 const Chunk difference = RawBigit(i + offset) - other.RawBigit(i) - borrow; in SubtractBignum()
240 borrow = difference >> (kChunkSize - 1); in SubtractBignum()
242 while (borrow != 0) { in SubtractBignum()
243 const Chunk difference = RawBigit(i + offset) - borrow; in SubtractBignum()
245 borrow = difference >> (kChunkSize - 1); in SubtractBignum()
703 Chunk borrow = 0; in PlusCompare() local
711 if (sum > chunk_c + borrow) { in PlusCompare()
714 borrow = chunk_c + borrow - sum; in PlusCompare()
[all …]
/third_party/node/deps/icu-small/source/i18n/
Ddouble-conversion-bignum.cpp234 Chunk borrow = 0; in SubtractBignum() local
237 DOUBLE_CONVERSION_ASSERT((borrow == 0) || (borrow == 1)); in SubtractBignum()
238 const Chunk difference = RawBigit(i + offset) - other.RawBigit(i) - borrow; in SubtractBignum()
240 borrow = difference >> (kChunkSize - 1); in SubtractBignum()
242 while (borrow != 0) { in SubtractBignum()
243 const Chunk difference = RawBigit(i + offset) - borrow; in SubtractBignum()
245 borrow = difference >> (kChunkSize - 1); in SubtractBignum()
703 Chunk borrow = 0; in PlusCompare() local
711 if (sum > chunk_c + borrow) { in PlusCompare()
714 borrow = chunk_c + borrow - sum; in PlusCompare()
[all …]
/third_party/icu/vendor/double-conversion/upstream/double-conversion/
Dbignum.cc220 Chunk borrow = 0; in SubtractBignum() local
223 DOUBLE_CONVERSION_ASSERT((borrow == 0) || (borrow == 1)); in SubtractBignum()
224 const Chunk difference = RawBigit(i + offset) - other.RawBigit(i) - borrow; in SubtractBignum()
226 borrow = difference >> (kChunkSize - 1); in SubtractBignum()
228 while (borrow != 0) { in SubtractBignum()
229 const Chunk difference = RawBigit(i + offset) - borrow; in SubtractBignum()
231 borrow = difference >> (kChunkSize - 1); in SubtractBignum()
689 Chunk borrow = 0; in PlusCompare() local
697 if (sum > chunk_c + borrow) { in PlusCompare()
700 borrow = chunk_c + borrow - sum; in PlusCompare()
[all …]
/third_party/skia/third_party/externals/icu/source/i18n/
Ddouble-conversion-bignum.cpp234 Chunk borrow = 0; in SubtractBignum() local
237 DOUBLE_CONVERSION_ASSERT((borrow == 0) || (borrow == 1)); in SubtractBignum()
238 const Chunk difference = RawBigit(i + offset) - other.RawBigit(i) - borrow; in SubtractBignum()
240 borrow = difference >> (kChunkSize - 1); in SubtractBignum()
242 while (borrow != 0) { in SubtractBignum()
243 const Chunk difference = RawBigit(i + offset) - borrow; in SubtractBignum()
245 borrow = difference >> (kChunkSize - 1); in SubtractBignum()
703 Chunk borrow = 0; in PlusCompare() local
711 if (sum > chunk_c + borrow) { in PlusCompare()
714 borrow = chunk_c + borrow - sum; in PlusCompare()
[all …]
/third_party/flutter/skia/third_party/externals/icu/source/i18n/
Ddouble-conversion-bignum.cpp234 Chunk borrow = 0; in SubtractBignum() local
237 ASSERT((borrow == 0) || (borrow == 1)); in SubtractBignum()
238 Chunk difference = bigits_[i + offset] - other.bigits_[i] - borrow; in SubtractBignum()
240 borrow = difference >> (kChunkSize - 1); in SubtractBignum()
242 while (borrow != 0) { in SubtractBignum()
243 Chunk difference = bigits_[i + offset] - borrow; in SubtractBignum()
245 borrow = difference >> (kChunkSize - 1); in SubtractBignum()
666 Chunk borrow = 0; in PlusCompare() local
674 if (sum > chunk_c + borrow) { in PlusCompare()
677 borrow = chunk_c + borrow - sum; in PlusCompare()
[all …]
/third_party/python/Modules/_decimal/libmpdec/
Dbasearith.c165 mpd_uint_t borrow = 0; in _mpd_basesub() local
172 d = u[i] - (v[i] + borrow); in _mpd_basesub()
173 borrow = (u[i] < d); in _mpd_basesub()
174 w[i] = borrow ? d + MPD_RADIX : d; in _mpd_basesub()
177 for (; borrow && i < m; i++) { in _mpd_basesub()
178 d = u[i] - borrow; in _mpd_basesub()
179 borrow = (u[i] == 0); in _mpd_basesub()
180 w[i] = borrow ? MPD_RADIX-1 : d; in _mpd_basesub()
196 mpd_uint_t borrow = 0; in _mpd_basesubfrom() local
203 d = w[i] - (u[i] + borrow); in _mpd_basesubfrom()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/marl/include/marl/
Dpool.h217 MARL_NO_EXPORT inline Loan borrow() const;
224 MARL_NO_EXPORT inline void borrow(size_t count, const F& f) const;
274 typename BoundedPool<T, N, POLICY>::Loan BoundedPool<T, N, POLICY>::borrow() in borrow() function
277 borrow(1, [&](Loan&& loan) { out = std::move(loan); }); in borrow()
283 void BoundedPool<T, N, POLICY>::borrow(size_t n, const F& f) const { in borrow() function
349 MARL_NO_EXPORT inline Loan borrow() const;
356 MARL_NO_EXPORT inline void borrow(size_t n, const F& f) const;
396 Loan<T> UnboundedPool<T, POLICY>::borrow() const { in borrow() function
398 borrow(1, [&](Loan&& loan) { out = std::move(loan); }); in borrow()
404 inline void UnboundedPool<T, POLICY>::borrow(size_t n, const F& f) const { in borrow() function
/third_party/openssl/crypto/bn/
Dbn_mod.c132 BN_ULONG borrow, carry, ta, tb, mask, *rp; in bn_mod_sub_fixed_top() local
142 for (i = 0, ai = 0, bi = 0, borrow = 0; i < mtop;) { in bn_mod_sub_fixed_top()
148 rp[i] = ta - tb - borrow; in bn_mod_sub_fixed_top()
150 borrow = (ta < tb); in bn_mod_sub_fixed_top()
157 for (i = 0, mask = 0 - borrow, carry = 0; i < mtop; i++) { in bn_mod_sub_fixed_top()
163 borrow -= carry; in bn_mod_sub_fixed_top()
164 for (i = 0, mask = 0 - borrow, carry = 0; i < mtop; i++) { in bn_mod_sub_fixed_top()
Dbn_add.c128 BN_ULONG t1, t2, borrow, *rp; in BN_usub() local
150 borrow = bn_sub_words(rp, ap, bp, min); in BN_usub()
157 t2 = (t1 - borrow) & BN_MASK2; in BN_usub()
159 borrow &= (t1 == 0); in BN_usub()
Drsa_sup_mul.c287 static limb_t _sub_limb(limb_t *ret, limb_t a, limb_t b, limb_t borrow) in _sub_limb() argument
295 *ret = a - borrow; in _sub_limb()
317 limb_t borrow = 0; in sub() local
321 borrow = _sub_limb(&ret[i], a[i], b[i], borrow); in sub()
323 return borrow; in sub()
/third_party/boost/boost/multiprecision/cpp_int/
Dadd.hpp142 double_limb_type borrow = 0; in subtract_unsigned() local
187 borrow = static_cast<double_limb_type>(pa[i]) - static_cast<double_limb_type>(pb[i]) - borrow; in subtract_unsigned()
188 pr[i] = static_cast<limb_type>(borrow); in subtract_unsigned()
189 borrow = (borrow >> CppInt1::limb_bits) & 1u; in subtract_unsigned()
193 while (borrow && (i < x)) in subtract_unsigned()
195 borrow = static_cast<double_limb_type>(pa[i]) - borrow; in subtract_unsigned()
196 pr[i] = static_cast<limb_type>(borrow); in subtract_unsigned()
197 borrow = (borrow >> CppInt1::limb_bits) & 1u; in subtract_unsigned()
203 BOOST_ASSERT(0 == borrow); in subtract_unsigned()
222 …BOOST_STATIC_CONSTANT(double_limb_type, borrow = static_cast<double_limb_type>(CppInt1::max_limb_v… in subtract_unsigned()
[all …]
/third_party/openssl/crypto/ec/curve448/
Dscalar.c55 c448_word_t borrow; in sc_subx() local
62 borrow = (c448_word_t)chain + extra; /* = 0 or -1 */ in sc_subx()
66 chain = (chain + out->limb[i]) + (p->limb[i] & borrow); in sc_subx()
/third_party/flutter/skia/include/core/
DSkExecutor.h31 virtual void borrow() {} in borrow() function
/third_party/python/Python/
Ddtoa.c881 ULLong borrow, y; in diff() local
911 borrow = 0; in diff()
913 y = (ULLong)*xa++ - *xb++ - borrow; in diff()
914 borrow = y >> 32 & (ULong)1; in diff()
919 y = *xa++ - borrow; in diff()
920 borrow = y >> 32 & (ULong)1; in diff()
1167 ULLong borrow, carry, y, ys; in quorem() local
1186 borrow = 0; in quorem()
1191 y = *bx - (ys & FFFFFFFF) - borrow; in quorem()
1192 borrow = y >> 32 & (ULong)1; in quorem()
[all …]
/third_party/skia/include/core/
DSkExecutor.h33 virtual void borrow() {} in borrow() function
/third_party/flutter/skia/src/core/
DSkTaskGroup.cpp42 fExecutor.borrow(); in wait()
DSkExecutor.cpp103 virtual void borrow() override { in borrow() function in SkThreadPool
/third_party/skia/src/core/
DSkTaskGroup.cpp42 fExecutor.borrow(); in wait()
DSkExecutor.cpp100 void borrow() override { in borrow() function in SkThreadPool
/third_party/python/Objects/
Dlongobject.c1481 digit borrow = 0; in v_isub() local
1485 borrow = x[i] - y[i] - borrow; in v_isub()
1486 x[i] = borrow & PyLong_MASK; in v_isub()
1487 borrow >>= PyLong_SHIFT; in v_isub()
1488 borrow &= 1; /* keep only 1 sign bit */ in v_isub()
1490 for (; borrow && i < m; ++i) { in v_isub()
1491 borrow = x[i] - borrow; in v_isub()
1492 x[i] = borrow & PyLong_MASK; in v_isub()
1493 borrow >>= PyLong_SHIFT; in v_isub()
1494 borrow &= 1; in v_isub()
[all …]
/third_party/openssl/crypto/bn/asm/
Dbn-c64xplus.asm164 [B0] ZERO A2 ; borrow flag
177 || AND 1,A1,A2 ; pass on borrow flag
180 AND 1,A1,RET ; return borrow flag
/third_party/skia/third_party/externals/oboe/samples/RhythmGame/third_party/glm/detail/
Dfunc_integer.hpp51 vecType<uint, P> & borrow);
/third_party/mesa3d/src/util/
Dsoftfloat.c647 uint8_t borrow; in _mesa_sub_m() local
652 borrow = 0; in _mesa_sub_m()
656 m_out[index] = a_word - b_word - borrow; in _mesa_sub_m()
659 borrow = borrow ? (a_word <= b_word) : (a_word < b_word); in _mesa_sub_m()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-subzero/lib/Support/
DAPInt.cpp261 bool borrow = false; in sub() local
263 uint64_t x_tmp = borrow ? x[i] - 1 : x[i]; in sub()
264 borrow = y[i] > x_tmp || (borrow && x[i] == 0); in sub()
267 return borrow; in sub()
1554 int64_t borrow = 0; in KnuthDiv() local
1557 int64_t subres = int64_t(u[j+i]) - borrow - (unsigned)p; in KnuthDiv()
1559 borrow = (p >> 32) - (subres >> 32); in KnuthDiv()
1561 << ", borrow = " << borrow << '\n'); in KnuthDiv()
1563 bool isNeg = u[j+n] < borrow; in KnuthDiv()
1564 u[j+n] -= (unsigned)borrow; in KnuthDiv()

1234