mbedtls_ct_uint_if() function
Choose between two integer values without branches. This is equivalent to `condition ? if1 : if0`, but is likely to be compiled to code using bitwise operation rather than a branch.
Syntax
unsigned mbedtls_ct_uint_if(unsigned condition,
unsigned if1,
unsigned if0);
Arguments
condition
Condition to test.
if1
Value to use if \p condition is nonzero.
if0
Value to use if \p condition is zero.
Return value
\c if1 if \p condition is nonzero, otherwise \c if0.