const_time_select_int() function
const_time_select_int - Constant time int selection @mask: 0 (false) or -1 (true) to identify which value to select @true_val: Value to select for the true case @false_val: Value to select for the false case Returns: true_val if mask == -1, false_val if mask == 0
![]()
static inline int const_time_select_int(unsigned int mask, int true_val,![]()
res = const_time_select_int(mask, res, diff);![]()
check = const_time_select_int(mask, -1, 1);![]()
res = const_time_select_int(mask, 1, 0);![]()
return const_time_select_int(in_range, res, 0);
const_time_select_int() is called by 3 functions and calls 1 function:
![]()
const_time_select_int()
const_time_select_int():
![]()
const_time_select_int()