hacspec_lib::prelude

Function cset_bit

Source
pub fn cset_bit<T: Integer + Copy>(x: T, b: T, i: usize, c: T) -> T
Expand description

Set bit at position i in x to b if c is all 1 and return the restult. Returns x if c is 0.