Lines Matching refs:true_val
95 * @true_val: Value to select for the true case
97 * Returns: true_val if mask == -1, false_val if mask == 0
100 unsigned int true_val,
103 return (mask & true_val) | (~mask & false_val);
110 * @true_val: Value to select for the true case
112 * Returns: true_val if mask == -1, false_val if mask == 0
114 static inline int const_time_select_int(unsigned int mask, int true_val,
117 return (int) const_time_select(mask, (unsigned int) true_val,
125 * @true_val: Value to select for the true case
127 * Returns: true_val if mask == -1, false_val if mask == 0
129 static inline u8 const_time_select_u8(u8 mask, u8 true_val, u8 false_val)
131 return (u8) const_time_select(mask, true_val, false_val);
138 * @true_val: Value to select for the true case
140 * Returns: true_val if mask == -1, false_val if mask == 0
142 static inline s8 const_time_select_s8(u8 mask, s8 true_val, s8 false_val)
144 return (s8) const_time_select(mask, (unsigned int) true_val,
152 * @true_val: Buffer to copy for the true case
161 static inline void const_time_select_bin(u8 mask, const u8 *true_val,
168 dst[i] = const_time_select_u8(mask, true_val[i], false_val[i]);