1 2 3 4 5 6
use crate::macros::bitmask::bitmask; #[inline(always)] pub const fn bit2mask(b1: i32, b2: i32) -> i32 { bitmask(b1) | bitmask(b2) }