Home
last modified time | relevance | path

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

/optee_os/lib/libutils/isoc/arch/arm/softfloat/source/
H A Ds_mul128MTo256M.c51 uint_fast8_t carry; in softfloat_mul128MTo256M() local
73 carry = (wordZ < (uint32_t) dwordProd); in softfloat_mul128MTo256M()
76 wordZ = zPtr[indexWord( 5, 1 )] + (uint32_t) dwordProd + carry; in softfloat_mul128MTo256M()
78 carry = in softfloat_mul128MTo256M()
79 carry ? (wordZ <= (uint32_t) dwordProd) in softfloat_mul128MTo256M()
83 wordZ = zPtr[indexWord( 5, 2 )] + (uint32_t) dwordProd + carry; in softfloat_mul128MTo256M()
85 carry = in softfloat_mul128MTo256M()
86 carry ? (wordZ <= (uint32_t) dwordProd) in softfloat_mul128MTo256M()
90 wordZ = zPtr[indexWord( 5, 3 )] + (uint32_t) dwordProd + carry; in softfloat_mul128MTo256M()
92 carry = in softfloat_mul128MTo256M()
[all …]
H A Ds_add256M.c49 uint_fast8_t carry; in softfloat_add256M() local
53 carry = 0; in softfloat_add256M()
56 wordZ = wordA + bPtr[index] + carry; in softfloat_add256M()
59 carry = carry ? (wordZ <= wordA) : (wordZ < wordA); in softfloat_add256M()
H A Ds_addF128M.c71 uint_fast8_t carry; in softfloat_addF128M() local
138 carry = 0; in softfloat_addF128M()
143 carry = ! wordSigZ; in softfloat_addF128M()
145 carry = in softfloat_addF128M()
150 carry, in softfloat_addF128M()
153 wordSigZ = sig96A + sig96B + carry; in softfloat_addF128M()
158 carry = in softfloat_addF128M()
167 wordSigZ = sig96A + ~sig96B + carry; in softfloat_addF128M()
170 carry = in softfloat_addF128M()
177 wordSigZ = sig96B + ~sig96A + carry; in softfloat_addF128M()
[all …]
H A Ds_addM.c53 uint_fast8_t carry; in softfloat_addM() local
58 carry = 0; in softfloat_addM()
61 wordZ = wordA + bPtr[index] + carry; in softfloat_addM()
64 carry = carry ? (wordZ <= wordA) : (wordZ < wordA); in softfloat_addM()
H A Ds_addComplCarryM.c49 uint_fast8_t carry, in softfloat_addComplCarryM() argument
60 wordZ = wordA + ~bPtr[index] + carry; in softfloat_addComplCarryM()
62 carry = carry ? (wordZ <= wordA) : (wordZ < wordA); in softfloat_addComplCarryM()
66 return carry; in softfloat_addComplCarryM()
H A Ds_addCarryM.c49 uint_fast8_t carry, in softfloat_addCarryM() argument
60 wordZ = wordA + bPtr[index] + carry; in softfloat_addCarryM()
62 carry = carry ? (wordZ <= wordA) : (wordZ < wordA); in softfloat_addCarryM()
66 return carry; in softfloat_addCarryM()
H A Ds_negXM.c47 uint_fast8_t carry; in softfloat_negXM() local
52 carry = 1; in softfloat_negXM()
54 word = ~zPtr[index] + carry; in softfloat_negXM()
58 if ( word ) carry = 0; in softfloat_negXM()
H A Df128M_roundToInt.c81 uint_fast8_t carry; in f128M_roundToInt() local
162 carry = (wordZ < wordA); in f128M_roundToInt()
172 wordZ = aWPtr[index] + carry; in f128M_roundToInt()
173 carry &= ! wordZ; in f128M_roundToInt()
182 carry = 0; in f128M_roundToInt()
189 carry = (wordZ < wordA); in f128M_roundToInt()
198 wordZ = aWPtr[index] + carry; in f128M_roundToInt()
200 carry &= ! wordZ; in f128M_roundToInt()
H A Ds_mul128By32.c48 uint_fast32_t carry; in softfloat_mul128By32() local
52 carry = (uint32_t) ((uint_fast32_t) (z.v0>>32) - (uint_fast32_t) mid); in softfloat_mul128By32()
53 z.v64 = a64 * b + (uint_fast32_t) ((mid + carry)>>32); in softfloat_mul128By32()
H A Ds_mulAddF128M.c80 uint_fast8_t carry; in softfloat_mulAddF128M() local
188 carry = 0; in softfloat_mulAddF128M()
192 carry = ! wordSig; in softfloat_mulAddF128M()
198 carry, in softfloat_mulAddF128M()
228 carry = 0; in softfloat_mulAddF128M()
230 carry = ! wordSig; in softfloat_mulAddF128M()
233 carry = in softfloat_mulAddF128M()
238 carry, in softfloat_mulAddF128M()
254 carry = in softfloat_mulAddF128M()
299 if ( carry != doSub ) { in softfloat_mulAddF128M()
/optee_os/lib/libutils/compiler-rt/lib/builtins/
H A Dint_div_impl.inc29 fixuint_t carry = 0;
32 n = (n << 1) | carry;
34 // carry = 0;
35 // if (r >= d) r -= d, carry = 1;
37 carry = s & 1;
40 n = (n << 1) | carry;
58 fixuint_t carry = 0;
61 n = (n << 1) | carry;
63 // carry = 0;
64 // if (r >= d) r -= d, carry = 1;
[all …]
/optee_os/core/lib/libtomcrypt/src/pk/ec25519/
H A Dtweetnacl.c352 u64 carry; in modL() local
354 carry = 0; in modL()
356 x[j] += carry - 16 * x[i] * L[j - (i - 32)]; in modL()
357 carry = (x[j] + 128) >> 8; in modL()
358 x[j] -= carry << 8; in modL()
360 x[j] += carry; in modL()
363 carry = 0; in modL()
365 x[j] += carry - (x[31] >> 4) * L[j]; in modL()
366 carry = x[j] >> 8; in modL()
369 FOR(j,32) x[j] -= carry * L[j]; in modL()
/optee_os/core/lib/libtomcrypt/src/stream/rabbit/
H A Drabbit.c101 p_instance->c[0] = (ulong32)(p_instance->c[0] + 0x4D34D34D + p_instance->carry); in ss_rabbit_next_state()
109 p_instance->carry = (p_instance->c[7] < c_old[7]); in ss_rabbit_next_state()
194 st->master_ctx.carry = 0; in rabbit_setup()
211 st->work_ctx.carry = st->master_ctx.carry; in rabbit_setup()
254 st->work_ctx.carry = st->master_ctx.carry; in rabbit_setiv()
/optee_os/lib/libutils/isoc/arch/arm/softfloat/source/include/
H A Dprimitives.h564 uint_fast32_t carry; in softfloat_mul128By32() local
567 carry = (uint32_t) ((uint_fast32_t) (z.v0>>32) - (uint_fast32_t) mid); in softfloat_mul128By32()
568 z.v64 = a64 * b + (uint_fast32_t) ((mid + carry)>>32); in softfloat_mul128By32()
924 uint_fast8_t carry,
940 uint_fast8_t carry,
950 …efine softfloat_addComplCarry96M( aPtr, bPtr, carry, zPtr ) softfloat_addComplCarryM( 3, aPtr, bPt… argument
/optee_os/lib/libmbedtls/mbedtls/library/
H A Dbignum_mod_raw.c184 mbedtls_mpi_uint carry, borrow; in mbedtls_mpi_mod_raw_add() local
185 carry = mbedtls_mpi_core_add(X, A, B, N->limbs); in mbedtls_mpi_mod_raw_add()
187 (void) mbedtls_mpi_core_add_if(X, N->p, N->limbs, (unsigned) (carry ^ borrow)); in mbedtls_mpi_mod_raw_add()
H A Decp_curves_new.c4874 static inline void add64(mbedtls_mpi_uint *dst, mbedtls_mpi_uint *src, mbedtls_mpi_uint *carry) in add64() argument
4882 *carry += c; in add64()
4886 static inline void carry64(mbedtls_mpi_uint *dst, mbedtls_mpi_uint *carry) in carry64() argument
4890 *dst += *carry; in carry64()
4891 *carry = (*dst < *carry); in carry64()
5334 mbedtls_mpi_uint carry = 0; in mbedtls_ecp_mod_p521_raw() local
5361 carry = mbedtls_mpi_core_mla(X0, X0_limbs, X1, X1_limbs, shift); in mbedtls_ecp_mod_p521_raw()
5372 mbedtls_mpi_uint addend = carry << (biL - 9); in mbedtls_ecp_mod_p521_raw()
5425 mbedtls_mpi_uint *carry = mbedtls_calloc(P255_WIDTH, ciL); in mbedtls_ecp_mod_p255_raw() local
5426 if (carry == NULL) { in mbedtls_ecp_mod_p255_raw()
[all …]
H A Dbn_mul.h775 [carry] "+l" (c) \
815 [carry] "+l" (c) \
H A Dbignum.c1116 mbedtls_mpi_uint carry; in mbedtls_mpi_sub_abs() local
1141 carry = mbedtls_mpi_core_sub(X->p, A->p, B->p, n); in mbedtls_mpi_sub_abs()
1142 if (carry != 0) { in mbedtls_mpi_sub_abs()
1144 carry = mbedtls_mpi_core_sub_int(X->p + n, X->p + n, carry, X->n - n); in mbedtls_mpi_sub_abs()
1147 if (carry != 0) { in mbedtls_mpi_sub_abs()
H A Decp_curves.c4879 static inline void add64(mbedtls_mpi_uint *dst, mbedtls_mpi_uint *src, mbedtls_mpi_uint *carry) in add64() argument
4887 *carry += c; in add64()
4891 static inline void carry64(mbedtls_mpi_uint *dst, mbedtls_mpi_uint *carry) in carry64() argument
4895 *dst += *carry; in carry64()
4896 *carry = (*dst < *carry); in carry64()
4982 static inline void add32(uint32_t *dst, uint32_t src, signed char *carry) in add32() argument
4985 *carry += (*dst < src); in add32()
4988 static inline void sub32(uint32_t *dst, uint32_t src, signed char *carry) in sub32() argument
4990 *carry -= (*dst < src); in sub32()
H A Dbignum_core.c558 mbedtls_mpi_uint carry = T[AN_limbs]; in mbedtls_mpi_core_montmul() local
575 mbedtls_ct_memcpy_if(mbedtls_ct_bool(carry ^ borrow), in mbedtls_mpi_core_montmul()
/optee_os/core/arch/arm/crypto/
H A Daes_modes_armv8a_ce_a32.S345 rev ip, ip @ ... to handle the carry
/optee_os/core/lib/libtomcrypt/src/headers/
H A Dtomcrypt_cipher.h1113 ulong32 carry; member
/optee_os/lib/libmbedtls/mbedtls/
H A DLICENSE105 (b) You must cause any modified files to carry prominent notices
309 a) You must cause the modified files to carry prominent notices
H A DChangeLog5897 with carry rollover (found by Ruslan Yushchenko)
5953 with carry rollover
/optee_os/lib/libutils/compiler-rt/
H A DLICENSE.TXT101 (b) You must cause any modified files to carry prominent notices