Home
last modified time | relevance | path

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

12

/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_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_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_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 …]
H A Dudivmodti4.c145 // carry = 1; in __udivmodti4()
/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/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()
271 * subtracting N and catching the carry. */ in mbedtls_mpi_mod_raw_neg()
H A Dbignum_core.c465 mbedtls_mpi_uint c = 0; /* carry */ in mbedtls_mpi_core_mla()
554 * We also look to see if there was any carry in the final additions in the in mbedtls_mpi_core_montmul()
558 mbedtls_mpi_uint carry = T[AN_limbs]; in mbedtls_mpi_core_montmul() local
566 * 1) T < N : (carry, borrow) = (0, 1): we want T in mbedtls_mpi_core_montmul()
567 * 2) N <= T < R : (carry, borrow) = (0, 0): we want X in mbedtls_mpi_core_montmul()
568 * 3) T >= R : (carry, borrow) = (1, 1): we want X in mbedtls_mpi_core_montmul()
570 * and (carry, borrow) = (1, 0) can't happen. in mbedtls_mpi_core_montmul()
572 * So the correct return value is already in X if (carry ^ borrow) = 0, in mbedtls_mpi_core_montmul()
573 * but is in (the lower AN_limbs limbs of) T if (carry ^ borrow) = 1. in mbedtls_mpi_core_montmul()
575 mbedtls_ct_memcpy_if(mbedtls_ct_bool(carry ^ borrow), in mbedtls_mpi_core_montmul()
[all …]
H A Dbignum_core.h20 * [0, 2^n-1] by returning carry parameters, while others operate
339 * \brief Add two fixed-size large unsigned integers, returning the carry.
343 * This function operates modulo `2^(biL*limbs)` and returns the carry
362 * returning the carry.
369 * return carry;
399 * This function operates modulo `2^(biL*limbs)` and returns the carry
437 * \return The carry at the end of the operation.
H A Dbn_mul.h12 * to destination vector [d] and set carry c.
767 "umaal %[b], %[carry], %[scalar], %[a] \n\t" \
775 [carry] "+l" (c) \
803 "umaal %[b0], %[carry], %[scalar], %[a0] \n\t" \
804 "umaal %[b1], %[carry], %[scalar], %[a1] \n\t" \
815 [carry] "+l" (c) \
H A Dbignum.c1093 /* Now propagate any carry */ in mbedtls_mpi_add_abs()
1116 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()
1143 /* Propagate the carry through the rest of X. */ 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()
1146 /* If we have further carry/borrow, the result is negative. */ in mbedtls_mpi_sub_abs()
1147 if (carry != 0) { in mbedtls_mpi_sub_abs()
/optee_os/lib/libutee/include/
H A Dpta_scmi_client.h29 * The memory uses SMT header to carry SCMI meta-data (protocol ID and
44 * The memory uses SMT header to carry SCMI meta-data (protocol ID and
/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()
193 /* Clear carry bit */ in rabbit_setup()
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/core/arch/arm/plat-ti/
H A Dapi_monitor_index_a9.h16 /* Carry out late actions as part of suspend sequence */
/optee_os/core/include/drivers/
H A Dzynqmp_pm.h62 * Different eFuse bitfields carry different meaning depending on this version.
/optee_os/core/arch/arm/include/sm/
H A Dteesmc_opteed.h13 * All SMC Function IDs indicates SMC32 Calling Convention but will carry
/optee_os/lib/libutils/isoc/arch/arm/softfloat/source/include/
H A Dprimitives.h458 | addition is modulo 2^128, so any carry out is lost.
479 | is modulo 2^256, so any carry out is lost. The sum is stored at the
493 | The subtraction is modulo 2^128, so any borrow out (carry out) is lost.
516 | (carry out) is lost. The difference is stored at the location pointed to
564 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()
871 | `size_words' * 32. The addition is modulo 2^N, so any carry out is lost.
913 | N = `size_words' * 32, plus `carry', which must be either 0 or 1. The N-bit
915 | carry out is returned as the result. Each of `aPtr', `bPtr', and `zPtr'
[all …]
/optee_os/lib/libutils/ext/include/
H A Dconfine_array_index.h78 "csel %0, %1, xzr, lo\n" // Select index or zero based on carry (%1 within range) in confine_array_index()

12