| /optee_os/lib/libutils/isoc/arch/arm/softfloat/source/ |
| H A D | s_mul128MTo256M.c | 51 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 D | s_addM.c | 53 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 D | s_addComplCarryM.c | 49 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 D | s_addCarryM.c | 49 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 D | s_add256M.c | 49 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 D | s_addF128M.c | 71 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 D | s_negXM.c | 47 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 D | f128M_roundToInt.c | 81 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 D | s_mul128By32.c | 48 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 D | s_mulAddF128M.c | 80 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 D | int_div_impl.inc | 29 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 D | udivmodti4.c | 145 // carry = 1; in __udivmodti4()
|
| /optee_os/core/lib/libtomcrypt/src/pk/ec25519/ |
| H A D | tweetnacl.c | 352 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 D | bignum_mod_raw.c | 184 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 D | bignum_core.c | 465 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 D | bignum_core.h | 20 * [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 D | bn_mul.h | 12 * 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 D | bignum.c | 1093 /* 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 D | pta_scmi_client.h | 29 * 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 D | rabbit.c | 101 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 D | api_monitor_index_a9.h | 16 /* Carry out late actions as part of suspend sequence */
|
| /optee_os/core/include/drivers/ |
| H A D | zynqmp_pm.h | 62 * Different eFuse bitfields carry different meaning depending on this version.
|
| /optee_os/core/arch/arm/include/sm/ |
| H A D | teesmc_opteed.h | 13 * All SMC Function IDs indicates SMC32 Calling Convention but will carry
|
| /optee_os/lib/libutils/isoc/arch/arm/softfloat/source/include/ |
| H A D | primitives.h | 458 | 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 D | confine_array_index.h | 78 "csel %0, %1, xzr, lo\n" // Select index or zero based on carry (%1 within range) in confine_array_index()
|