Searched defs:carry (Results 26 - 50 of 82) sorted by relevance

1234

/external/boringssl/src/crypto/fipsmodule/bn/
H A Dmontgomery.c271 // includes |carry| which is stored separately.
273 BN_ULONG carry = 0; local
276 v += carry + a[i + num_n];
277 carry |= (v != a[i + num_n]);
278 carry &= (v <= a[i + num_n]);
283 // includes |carry| which is stored separately.
290 BN_ULONG v = bn_sub_words(r, a, n, num_n) - carry;
315 int max = (2 * n->top); // carry is stored separately
/external/boringssl/src/crypto/fipsmodule/ecdsa/
H A Decdsa.c83 BN_ULONG carry = bn_add_words(r->words, a->words, b->words, order->top); local
85 BN_ULONG v = bn_sub_words(tmp.words, r->words, order->d, order->top) - carry;
/external/eigen/unsupported/Eigen/CXX11/src/Tensor/
H A DTensorUInt128.h164 // Compute the high 32 bits of low. Add a carry every time we wrap around
166 uint64_t carry = 0; local
169 carry++;
173 carry++;
179 acc2 = (acc >> 32LL) | (carry << 32LL);
180 carry = 0;
184 carry++;
188 carry++;
192 carry++;
197 acc2 = (acc >> 32LL) | (carry << 3
[all...]
/external/libavc/encoder/
H A Dih264e_cabac.c259 /* Insert the carry (propogated in previous byte) along with */
263 /* carry = 1 => putbit(1); carry propogated due to L renorm */
264 WORD32 carry = (u4_low >> (u4_bits_gen + CABAC_BITS)) & 0x1; local
269 if (carry)
272 and the data will become 0x00000303 and if the carry is present, it will
284 /* previous byte carry add will not result in overflow to */
286 pu1_strm_buf[u4_strm_buf_offset - 1] += carry;
293 UWORD8 u1_0_or_ff = carry ? 0 : 0xFF;
299 /* clear the carry i
389 WORD32 carry = (lead_byte >> 8) & 0x1; local
[all...]
/external/libconstrainedcrypto/
H A Dp256.c76 p256_ddigit carry = 0; local
79 carry += *c;
80 carry += (p256_ddigit)P256_DIGIT(a, i) * b;
81 *c++ = (p256_digit)carry;
82 carry >>= P256_BITSPERDIGIT;
84 return top + (p256_digit)carry;
132 p256_ddigit carry = 0; local
134 carry += *c;
135 carry += P256_DIGIT(MOD, i) & mask;
136 *c++ = (p256_digit)carry;
267 p256_ddigit carry = 0; local
280 p256_ddigit carry = d; local
[all...]
/external/libopus/celt/
H A Dentenc.c72 /*Outputs a symbol, with a carry bit.
73 If there is a potential to propagate a carry over several symbols, they are
74 buffered until it can be determined whether or not an actual carry will
80 The alternative is to truncate the range in order to force a carry, but
81 requires similar carry tracking in the decoder, needlessly slowing it down.*/
84 /*No further carry propagation possible, flush buffer.*/
85 int carry; local
86 carry=_c>>EC_SYM_BITS;
89 if(_this->rem>=0)_this->error|=ec_write_byte(_this,_this->rem+carry);
92 sym=(EC_SYM_MAX+carry)
[all...]
/external/llvm/unittests/ADT/
H A DAPIntTest.cpp845 integerPart carry = APInt::tcDecrement(&singleWord, 1); local
846 EXPECT_EQ(carry, integerPart(0));
853 integerPart carry = APInt::tcDecrement(&singleWord, 1); local
854 EXPECT_EQ(carry, integerPart(1));
872 integerPart carry = APInt::tcDecrement(test, 4); local
873 EXPECT_EQ(carry, integerPart(0));
881 integerPart carry = APInt::tcDecrement(test, 4); local
882 EXPECT_EQ(carry, integerPart(0));
890 integerPart carry = APInt::tcDecrement(test, 4); local
891 EXPECT_EQ(carry, integerPar
899 integerPart carry = APInt::tcDecrement(test, 4); local
[all...]
/external/pdfium/third_party/bigint/
H A DBigUnsigned.cc164 // If a carry was input, handle it
170 carryIn = carryOut; // Pass the carry along
172 // If there is a carry left over, increase blocks until
179 // If the carry was resolved but the larger number
183 // Set the extra block if there's still a carry, decrease length otherwise
364 // Roll-over a carry as necessary.
664 bool carry = true; local
665 for (i = 0; i < len && carry; i++) {
667 carry = (blk[i] == 0);
669 if (carry) {
[all...]
/external/python/cpython3/Modules/_decimal/libmpdec/
H A Dbasearith.c48 * The calling function has to handle a possible final carry.
55 mpd_uint_t carry = 0; local
62 s = u[i] + (v[i] + carry);
63 carry = (s < u[i]) | (s >= MPD_RADIX);
64 w[i] = carry ? s-MPD_RADIX : s;
66 /* if there is a carry, propagate it */
67 for (; carry && i < m; i++) {
68 s = u[i] + carry;
69 carry = (s == MPD_RADIX);
70 w[i] = carry
88 mpd_uint_t carry = 0; local
115 mpd_uint_t carry; local
140 mpd_uint_t carry = 1; local
220 mpd_uint_t carry = 0; local
246 mpd_uint_t carry; local
313 mpd_uint_t carry; local
565 mpd_uint_t carry; local
590 mpd_uint_t carry = 0; local
613 mpd_uint_t carry = 0; local
[all...]
/external/v8/src/
H A Dbignum.cc168 // In both cases we might need a carry bigit.
171 Chunk carry = 0; local
175 Chunk sum = bigits_[bigit_pos] + other.bigits_[i] + carry;
177 carry = sum >> kBigitSize;
181 while (carry != 0) {
182 Chunk sum = bigits_[bigit_pos] + carry;
184 carry = sum >> kBigitSize;
237 // Assert that this number + 1 (for the carry) fits into double chunk.
239 DoubleChunk carry = 0; local
241 DoubleChunk product = static_cast<DoubleChunk>(factor) * bigits_[i] + carry;
[all...]
/external/wpa_supplicant_8/hostapd/src/crypto/
H A Daes-siv.c22 int i, carry; local
24 carry = pad[0] & 0x80;
28 if (carry)
/external/wpa_supplicant_8/src/crypto/
H A Daes-siv.c22 int i, carry; local
24 carry = pad[0] & 0x80;
28 if (carry)
/external/wpa_supplicant_8/wpa_supplicant/src/crypto/
H A Daes-siv.c22 int i, carry; local
24 carry = pad[0] & 0x80;
28 if (carry)
/external/boringssl/src/crypto/curve25519/
H A Dspake25519.c307 uint8_t carry = 0; local
312 n[i] = (n[i] << 3) | carry;
313 carry = next_carry;
339 uint32_t carry = 0; local
343 s->words[i] = (s->words[i] << 1) | carry;
344 carry = carry_out;
350 uint32_t carry = 0; local
353 uint64_t tmp = ((uint64_t)dest->words[i] + src->words[i]) + carry;
355 carry = (uint32_t)(tmp >> 32);
/external/boringssl/src/crypto/pkcs8/
H A Dpkcs8.c205 unsigned carry = 1; local
207 carry += I[i + j] + B[j];
208 I[i + j] = (uint8_t)carry;
209 carry >>= 8;
/external/curl/src/
H A Dtool_urlglob.c520 bool carry = TRUE; local
524 for(i = 0; carry && (i < glob->size); i++) {
525 carry = FALSE;
532 carry = TRUE;
541 carry = TRUE;
548 carry = TRUE;
556 if(carry) { /* first pattern ptr has run into overflow, done! */
/external/python/cpython2/RISCOS/Modules/
H A Dswimodule.c343 int swino,carry,rno=0,j,n; local
387 swicall:e=(os_error*)_kernel_swi_c(swino,&r,&r,&carry);
407 case '*':v=PyInt_FromLong((long)carry); break;
/external/swiftshader/third_party/LLVM/lib/Support/
H A DAPInt.cpp179 /// 1 is returned if there is a carry out, otherwise 0 is returned.
180 /// @returns the carry of the addition.
187 y = 0; // No need to carry so exit early
234 /// @returns the carry out from the addition
238 bool carry = false; local
241 dest[i] = x[i] + y[i] + carry;
242 carry = dest[i] < limit || (carry && dest[i] == limit);
244 return carry;
288 /// @returns the carry ou
293 uint64_t carry = 0; local
329 uint64_t carry = 0, lx = 0, hx = 0; local
[all...]
/external/tensorflow/tensorflow/core/kernels/
H A Dsparse_cross_op.cc247 bool carry = true; local
249 if (carry) {
255 carry = false;
259 has_next_ = !carry;
/external/wpa_supplicant_8/hostapd/src/tls/
H A Dpkcs5.c412 unsigned int carry = 0; local
415 carry = carry + a[i] + b[i];
416 a[i] = carry & 0xff;
417 carry >>= 8;
/external/wpa_supplicant_8/src/tls/
H A Dpkcs5.c412 unsigned int carry = 0; local
415 carry = carry + a[i] + b[i];
416 a[i] = carry & 0xff;
417 carry >>= 8;
/external/wpa_supplicant_8/wpa_supplicant/src/tls/
H A Dpkcs5.c412 unsigned int carry = 0; local
415 carry = carry + a[i] + b[i];
416 a[i] = carry & 0xff;
417 carry >>= 8;
/external/aac/libAACdec/src/
H A Daacdec_hcrs.cpp55 Your modified versions of the FDK AAC Codec must carry prominent notices stating
148 INT carry; local
313 /* transfare carry bit 0 from current word into bitposition 31 from next
317 /* get carry (=bit at position 0) from current word */
318 carry = pCodewordBitfield[bitfieldWord] & 1;
320 /* put the carry bit at position 31 into word right from current word
324 (carry << (NUMBER_OF_BIT_IN_WORD - 1));
/external/mesa3d/src/compiler/glsl/
H A Dir_builder.cpp239 ir_expression *carry(operand a, operand b) function in namespace:ir_builder
/external/tensorflow/tensorflow/contrib/layers/kernels/
H A Dsparse_feature_cross_kernel.cc282 bool carry = true; local
284 if (carry) {
290 carry = false;
294 has_next_ = !carry;

Completed in 579 milliseconds

1234