Open Autoparallel opened 5 months ago
Another function that works on basic u32 is the ch() function which, essentially, makes a choice between bits of y and z based on another input x. It is implemented like so:
u32
ch()
y
z
x
fn ch(x: u32, y: u32, z: u32) -> u32 { (x & y) ^ (!x & z) }
Another function that works on basic
u32
is thech()
function which, essentially, makes a choice between bits ofy
andz
based on another inputx
. It is implemented like so: