arrow_arith::aggregate

Function select

Source
fn select<T: Copy>(m: bool, a: T, b: T) -> T
Expand description

Helper for branchlessly selecting either a or b based on the boolean m. After verifying the generated assembly this can be a simple if.