Skip to main content

conditional_select_nospec_eq

Function conditional_select_nospec_eq 

Source
pub fn conditional_select_nospec_eq(
    x: usize,
    y: usize,
    a: usize,
    b: usize,
) -> usize
Expand description

returns a if x == y, b otherwise. Immune to speculative execution information leak bugs such as Spectre V1.