hacspec_lib::prelude

Function cmul

Source
pub fn cmul<T: Integer + Copy>(x: T, y: T, c: T) -> T
Expand description

Multiply two numerics if condition c is set (all bits 1). Returns x if condition c is 0. Note: Multiplication is always wrapping.