Lines Matching refs:cond
231 mbedtls_mpi_uint cond; in mbedtls_ct_mpi_uint_lt() local
236 cond = ( x ^ y ); in mbedtls_ct_mpi_uint_lt()
241 ret = ( x - y ) & ~cond; in mbedtls_ct_mpi_uint_lt()
247 ret |= y & cond; in mbedtls_ct_mpi_uint_lt()
534 #define MPI_VALIDATE_RET( cond ) \ argument
535 MBEDTLS_INTERNAL_VALIDATE_RET( cond, MBEDTLS_ERR_MPI_BAD_INPUT_DATA )
626 unsigned cond, done, X_is_negative, Y_is_negative; in mbedtls_mpi_lt_mpi_ct() local
647 cond = ( X_is_negative ^ Y_is_negative ); in mbedtls_mpi_lt_mpi_ct()
648 *ret = cond & X_is_negative; in mbedtls_mpi_lt_mpi_ct()
654 done = cond; in mbedtls_mpi_lt_mpi_ct()
665 cond = mbedtls_ct_mpi_uint_lt( Y->p[i - 1], X->p[i - 1] ); in mbedtls_mpi_lt_mpi_ct()
666 *ret |= cond & ( 1 - done ) & X_is_negative; in mbedtls_mpi_lt_mpi_ct()
667 done |= cond; in mbedtls_mpi_lt_mpi_ct()
676 cond = mbedtls_ct_mpi_uint_lt( X->p[i - 1], Y->p[i - 1] ); in mbedtls_mpi_lt_mpi_ct()
677 *ret |= cond & ( 1 - done ) & ( 1 - X_is_negative ); in mbedtls_mpi_lt_mpi_ct()
678 done |= cond; in mbedtls_mpi_lt_mpi_ct()