Home
last modified time | relevance | path

Searched refs:carry (Results 1 – 25 of 550) sorted by relevance

12345678910>>...22

/external/boringssl/src/ssl/test/runner/curve25519/
Dcurve25519.go98 var carry [10]int64
99 carry[9] = (h9 + 1<<24) >> 25
100 h0 += carry[9] * 19
101 h9 -= carry[9] << 25
102 carry[1] = (h1 + 1<<24) >> 25
103 h2 += carry[1]
104 h1 -= carry[1] << 25
105 carry[3] = (h3 + 1<<24) >> 25
106 h4 += carry[3]
107 h3 -= carry[3] << 25
[all …]
/external/boringssl/src/crypto/bn/asm/
Dx86-mont.pl305 $carry="ebp";
308 &lea ($carry,&DWP(1,$num));
312 &and ($carry,1); # see if num is even
315 &or ($carry,"edx");
323 &mov ($carry,"edx");
325 &add ($carry,"eax");
330 &mov (&DWP($frame-4,"esp",$j,4),$carry); # tp[j]=
333 &mov ($carry,"edx");
336 &add ("eax",$carry);
356 &mov ($carry,"edx");
[all …]
Darmv8-mont.pl273 my ($cnt,$carry,$topmost)=("x27","x28","x30");
274 my ($tp,$ap_end,$na0)=($bp,$np,$carry);
516 //adc $carry,xzr,xzr // moved below
543 adc $carry,xzr,xzr // carry bit, modulo-scheduled
564 adc $carry,$carry,xzr
578 adcs $acc7,$carry,$t3
579 //adc $carry,xzr,xzr // moved above
605 //adc $carry,xzr,xzr // moved above
786 //adc $carry,xzr,xzr // moved below
799 adc $carry,xzr,xzr // carry bit, modulo-scheduled
[all …]
Dx86_64-mont5.pl1582 my ($shift,$carry)=($a0,$a1);
1588 xor $carry,$carry
1594 mov $carry,24($tptr) # t[7]
1609 neg $carry # mov $carry,cf
1618 sbb $carry,$carry # mov cf,$carry
1626 neg $carry # mov $carry,cf
1634 sbb $carry,$carry # mov cf,$carry
1648 neg $carry # mov $carry,cf
1657 sbb $carry,$carry # mov cf,$carry
1665 neg $carry # mov $carry,cf
[all …]
/external/openssh/
Dsc25519.c59 crypto_uint32 carry; in barrett_reduce() local
69 carry = q2[31] >> 8; in barrett_reduce()
70 q2[32] += carry; in barrett_reduce()
71 carry = q2[32] >> 8; in barrett_reduce()
72 q2[33] += carry; in barrett_reduce()
81 carry = r2[i] >> 8; in barrett_reduce()
82 r2[i+1] += carry; in barrett_reduce()
169 int i, carry; in sc25519_add() local
173 carry = r->v[i] >> 8; in sc25519_add()
174 r->v[i+1] += carry; in sc25519_add()
[all …]
/external/libconstrainedcrypto/
Dp256.c76 p256_ddigit carry = 0; in mulAdd() local
79 carry += *c; in mulAdd()
80 carry += (p256_ddigit)P256_DIGIT(a, i) * b; in mulAdd()
81 *c++ = (p256_digit)carry; in mulAdd()
82 carry >>= P256_BITSPERDIGIT; in mulAdd()
84 return top + (p256_digit)carry; in mulAdd()
132 p256_ddigit carry = 0; in addM() local
134 carry += *c; in addM()
135 carry += P256_DIGIT(MOD, i) & mask; in addM()
136 *c++ = (p256_digit)carry; in addM()
[all …]
Dp256_ec.c196 static void felem_reduce_carry(felem inout, limb carry) { in felem_reduce_carry() argument
197 const u32 carry_mask = NON_ZERO_TO_ALL_ONES(carry); in felem_reduce_carry()
199 inout[0] += carry << 1; in felem_reduce_carry()
203 inout[3] -= carry << 11; in felem_reduce_carry()
207 inout[6] -= carry << 22; in felem_reduce_carry()
211 inout[7] += carry << 25; in felem_reduce_carry()
219 limb carry = 0; in felem_sum() local
224 out[i] += carry; in felem_sum()
225 carry = out[i] >> 29; in felem_sum()
233 out[i] += carry; in felem_sum()
[all …]
/external/arm-neon-tests/
Dref-rvct-all.txt8046 saturate(0x1) = 0x1 overflow 0 carry 0
8047 saturate(0xffffffff) = 0xffffffff overflow 0 carry 0
8048 saturate(0x8000) = 0x7fff overflow 1 carry 0
8049 saturate(0xffff8000) = 0xffff8000 overflow 0 carry 0
8050 saturate(0xffff7fff) = 0xffff8000 overflow 1 carry 0
8051 add(0x1, 0x1) = 0x2 overflow 0 carry 0
8052 add(0xffffffff, 0xffffffff) = 0xfffffffe overflow 0 carry 0
8053 add(0x4e20, 0x4e20) = 0x7fff overflow 1 carry 0
8054 add(0xffffb1e0, 0xffffb1e0) = 0xffff8000 overflow 1 carry 0
8055 sub(0x1, 0x1) = 0 overflow 0 carry 0
[all …]
/external/valgrind/VEX/switchback/
Dtest_emfloat.c529 static void Add16Bits(u16 *carry,u16 *a,u16 b,u16 c);
531 static void ShiftMantLeft1(u16 *carry,u16 *mantissa);
532 static void ShiftMantRight1(u16 *carry,u16 *mantissa);
768 static void Add16Bits(u16 *carry, in Add16Bits() argument
781 accum+=(u32)*carry; in Add16Bits()
782 *carry=(u16)((accum & 0x00010000) ? 1 : 0); /* New carry */ in Add16Bits()
814 static void ShiftMantLeft1(u16 *carry, in ShiftMantLeft1() argument
825 if(*carry) in ShiftMantLeft1()
827 *carry=new_carry; in ShiftMantLeft1()
839 static void ShiftMantRight1(u16 *carry, in ShiftMantRight1() argument
[all …]
/external/v8/src/
Dbignum.cc171 Chunk carry = 0; in AddBignum() local
175 Chunk sum = bigits_[bigit_pos] + other.bigits_[i] + carry; in AddBignum()
177 carry = sum >> kBigitSize; in AddBignum()
181 while (carry != 0) { in AddBignum()
182 Chunk sum = bigits_[bigit_pos] + carry; in AddBignum()
184 carry = sum >> kBigitSize; in AddBignum()
239 DoubleChunk carry = 0; in MultiplyByUInt32() local
241 DoubleChunk product = static_cast<DoubleChunk>(factor) * bigits_[i] + carry; in MultiplyByUInt32()
243 carry = (product >> kBigitSize); in MultiplyByUInt32()
245 while (carry != 0) { in MultiplyByUInt32()
[all …]
/external/boringssl/src/crypto/bn/
Dadd.c106 BN_ULONG *ap, *bp, *rp, carry, t1, t2; in BN_uadd() local
128 carry = bn_add_words(rp, ap, bp, min); in BN_uadd()
133 if (carry) { in BN_uadd()
140 carry = 0; in BN_uadd()
144 if (carry) { in BN_uadd()
264 int i, carry; in BN_usub() local
284 carry = 0; in BN_usub()
288 if (carry) { in BN_usub()
289 carry = (t1 <= t2); in BN_usub()
292 carry = (t1 < t2); in BN_usub()
[all …]
/external/llvm/test/CodeGen/AMDGPU/
Dssubo.ll12 %carry = extractvalue { i64, i1 } %ssub, 1
13 %ext = zext i1 %carry to i64
23 %carry = extractvalue { i32, i1 } %ssub, 1
25 store i1 %carry, i1 addrspace(1)* %carryout
35 %carry = extractvalue { i32, i1 } %ssub, 1
37 store i1 %carry, i1 addrspace(1)* %carryout
47 %carry = extractvalue { i64, i1 } %ssub, 1
49 store i1 %carry, i1 addrspace(1)* %carryout
61 %carry = extractvalue { i64, i1 } %ssub, 1
63 store i1 %carry, i1 addrspace(1)* %carryout
Dsaddo.ll12 %carry = extractvalue { i64, i1 } %sadd, 1
13 %ext = zext i1 %carry to i64
23 %carry = extractvalue { i32, i1 } %sadd, 1
25 store i1 %carry, i1 addrspace(1)* %carryout
35 %carry = extractvalue { i32, i1 } %sadd, 1
37 store i1 %carry, i1 addrspace(1)* %carryout
45 %carry = extractvalue { i64, i1 } %sadd, 1
47 store i1 %carry, i1 addrspace(1)* %carryout
59 %carry = extractvalue { i64, i1 } %sadd, 1
61 store i1 %carry, i1 addrspace(1)* %carryout
Duaddo.ll18 %carry = extractvalue { i64, i1 } %uadd, 1
19 %ext = zext i1 %carry to i64
33 %carry = extractvalue { i32, i1 } %uadd, 1
35 store i1 %carry, i1 addrspace(1)* %carryout
49 %carry = extractvalue { i32, i1 } %uadd, 1
51 store i1 %carry, i1 addrspace(1)* %carryout
64 %carry = extractvalue { i64, i1 } %uadd, 1
66 store i1 %carry, i1 addrspace(1)* %carryout
81 %carry = extractvalue { i64, i1 } %uadd, 1
83 store i1 %carry, i1 addrspace(1)* %carryout
Dusubo.ll15 %carry = extractvalue { i64, i1 } %usub, 1
16 %ext = zext i1 %carry to i64
30 %carry = extractvalue { i32, i1 } %usub, 1
32 store i1 %carry, i1 addrspace(1)* %carryout
46 %carry = extractvalue { i32, i1 } %usub, 1
48 store i1 %carry, i1 addrspace(1)* %carryout
63 %carry = extractvalue { i64, i1 } %usub, 1
65 store i1 %carry, i1 addrspace(1)* %carryout
82 %carry = extractvalue { i64, i1 } %usub, 1
84 store i1 %carry, i1 addrspace(1)* %carryout
/external/wpa_supplicant_8/src/crypto/
Dfips_prf_internal.c23 u32 carry; in fips186_2_prf() local
56 carry = 1; in fips186_2_prf()
58 carry += xkey[k] + xpos[k]; in fips186_2_prf()
59 xkey[k] = carry & 0xff; in fips186_2_prf()
60 carry >>= 8; in fips186_2_prf()
Dfips_prf_openssl.c54 u32 carry; in fips186_2_prf() local
86 carry = 1; in fips186_2_prf()
88 carry += xkey[k] + xpos[k]; in fips186_2_prf()
89 xkey[k] = carry & 0xff; in fips186_2_prf()
90 carry >>= 8; in fips186_2_prf()
/external/compiler-rt/lib/builtins/
Dudivsi3.c47 su_int carry = 0; in ARM_EABI_FNALIAS() local
52 q = (q << 1) | carry; in ARM_EABI_FNALIAS()
61 carry = s & 1; in ARM_EABI_FNALIAS()
64 q = (q << 1) | carry; in ARM_EABI_FNALIAS()
/external/syslinux/gpxe/src/crypto/axtls/
Dbigint.c246 comp carry = 0; in bi_add() local
262 rl = sl + carry; in bi_add()
264 carry = cy1 | (rl < sl); in bi_add()
268 *pa = carry; /* do overflow */ in bi_add()
286 comp *pa, *pb, carry = 0; in bi_subtract() local
299 rl = sl - carry; in bi_subtract()
301 carry = cy1 | (rl > sl); in bi_subtract()
307 *is_negative = carry; in bi_subtract()
321 comp carry = 0; in bi_int_multiply() local
332 long_comp tmp = *r + (long_comp)a[j]*b + carry; in bi_int_multiply()
[all …]
/external/swiftshader/third_party/LLVM/lib/Support/
DAPInt.cpp238 bool carry = false; in add() local
241 dest[i] = x[i] + y[i] + carry; in add()
242 carry = dest[i] < limit || (carry && dest[i] == limit); in add()
244 return carry; in add()
293 uint64_t carry = 0; in mul_1() local
305 dest[i] = carry + lx * ly; in mul_1()
307 hasCarry = (dest[i] < carry) ? 1 : 0; in mul_1()
308 carry = hx * ly + (dest[i] >> 32) + (hasCarry ? (1ULL << 32) : 0); in mul_1()
311 hasCarry = (!carry && hasCarry) ? 1 : (!carry ? 2 : 0); in mul_1()
313 carry += (lx * hy) & 0xffffffffULL; in mul_1()
[all …]
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/math/ec/
DWNafUtil.java85 boolean carry = false; in generateCompactWindowNaf()
90 if (k.testBit(pos) == carry) in generateCompactWindowNaf()
99 if (carry) in generateCompactWindowNaf()
104 carry = (digit & sign) != 0; in generateCompactWindowNaf()
105 if (carry) in generateCompactWindowNaf()
248 boolean carry = false; in generateWindowNaf()
253 if (k.testBit(pos) == carry) in generateWindowNaf()
262 if (carry) in generateWindowNaf()
267 carry = (digit & sign) != 0; in generateWindowNaf()
268 if (carry) in generateWindowNaf()
/external/eigen/unsupported/Eigen/CXX11/src/Tensor/
DTensorUInt128.h166 uint64_t carry = 0; variable
169 carry++;
173 carry++;
179 acc2 = (acc >> 32LL) | (carry << 32LL);
180 carry = 0;
184 carry++;
188 carry++;
192 carry++;
197 acc2 = (acc >> 32LL) | (carry << 32LL);
/external/swiftshader/third_party/LLVM/test/CodeGen/CBackend/
D2011-06-08-addWithOverflow.ll10 br i1 %obit, label %carry, label %normal
15 carry: ; preds = %entry
23 br i1 %obit, label %carry, label %normal
28 carry: ; preds = %entry
/external/llvm/lib/Support/
DAPInt.cpp241 bool carry = false; in add() local
244 dest[i] = x[i] + y[i] + carry; in add()
245 carry = dest[i] < limit || (carry && dest[i] == limit); in add()
247 return carry; in add()
296 uint64_t carry = 0; in mul_1() local
308 dest[i] = carry + lx * ly; in mul_1()
310 hasCarry = (dest[i] < carry) ? 1 : 0; in mul_1()
311 carry = hx * ly + (dest[i] >> 32) + (hasCarry ? (1ULL << 32) : 0); in mul_1()
314 hasCarry = (!carry && hasCarry) ? 1 : (!carry ? 2 : 0); in mul_1()
316 carry += (lx * hy) & 0xffffffffULL; in mul_1()
[all …]
/external/icu/icu4c/source/i18n/
DdecNumber.c4918 uInt carry; /* carry (NB not uLong) */ in decMultiplyOp() local
5077 if (lcarry<FASTBASE) carry=(uInt)lcarry; /* [usual] */ in decMultiplyOp()
5082 carry=(uInt)(lcarry-((uLong)FASTBASE*carry2)); /* [inline] */ in decMultiplyOp()
5084 *(lp+1)+=carry; /* add to item above [inline] */ in decMultiplyOp()
5085 *lp-=((uLong)FASTBASE*carry); /* [inline] */ in decMultiplyOp()
6388 eInt carry=0; /* carry integer (could be Long) */ local
6424 carry+=*a;
6426 carry+=((eInt)*b)*m; /* [special-casing m=1/-1 */
6429 if ((ueInt)carry<=DECDPUNMAX) { /* fastpath 0-DECDPUNMAX */
6430 *c=(Unit)carry;
[all …]

12345678910>>...22