Lines Matching defs:carry
4822 * adding chunks to N in place, and keeping a carry for the next chunk.
4831 /* Add 64-bit chunks (dst += src) and update carry */
4832 static inline void add64(mbedtls_mpi_uint *dst, mbedtls_mpi_uint *src, mbedtls_mpi_uint *carry)
4840 *carry += c;
4843 /* Add carry to a 64-bit chunk and update carry */
4844 static inline void carry64(mbedtls_mpi_uint *dst, mbedtls_mpi_uint *carry)
4848 *dst += *carry;
4849 *carry = (*dst < *carry);
4933 * Helpers for addition and subtraction of chunks, with signed carry.
4935 static inline void add32(uint32_t *dst, uint32_t src, signed char *carry)
4938 *carry += (*dst < src);
4941 static inline void sub32(uint32_t *dst, uint32_t src, signed char *carry)
4943 *carry -= (*dst < src);
4986 * set the absolute value to 0xfff...fff - N. There is no carry
4991 /* Add 1, taking care of the carry. */
5293 M.n = P448_WIDTH + 1; /* Make room for shifted carry bit from the addition */