Module dispatch

Module dispatch 

Source
Expand description

§Bitmask Dispatch Module - Compile-Time SIMD/Scalar Selection for Bitmask Operations

Dispatcher that selects between SIMD and scalar implementations at compile time based on feature flags and target architecture capabilities.

Prefer this unless you want to access the underlying kernel functions directly.

Constants§

W8
Auto-generated SIMD lane widths from build.rs SIMD lane count for 8-bit elements (u8, i8). Determined at build time based on target architecture capabilities, or overridden via SIMD_LANES_OVERRIDE.
W16
SIMD lane count for 16-bit elements (u16, i16). Determined at build time based on target architecture capabilities, or overridden via SIMD_LANES_OVERRIDE.
W32
SIMD lane count for 32-bit elements (u32, i32, f32). Determined at build time based on target architecture capabilities, or overridden via SIMD_LANES_OVERRIDE.
W64
SIMD lane count for 64-bit elements (u64, i64, f64). Determined at build time based on target architecture capabilities, or overridden via SIMD_LANES_OVERRIDE.

Functions§

all_eq
Returns true if all bits are equal between two bitmask windows.
all_false_mask
Returns true if all bits in the mask are unset (0).
all_ne
Returns true if all bits differ between two bitmask windows.
all_true_mask
Returns true if all bits in the mask are set (1).
and_masks
Computes the element-wise bitwise AND of two bitmask windows for intersection operations.
bitmask_binop
Performs a binary logical operation (AND, OR, XOR) on two bitmask windows with automatic SIMD/scalar dispatch.
bitmask_unop
Performs a unary operation (NOT) on a bitmask window.
eq_mask
Computes an equality mask: output bit is true if bits are equal at each position.
in_mask
Performs bitwise inclusion: output bit is true if lhs bit is present in rhs bit-set.
ne_mask
Computes an inequality mask: output bit is true if bits differ at each position.
not_in_mask
Performs bitwise exclusion: output bit is true if lhs bit is not present in rhs bit-set.
not_mask
Computes the element-wise bitwise NOT of a bitmask window.
or_masks
Computes the element-wise bitwise OR of two bitmask windows.
popcount_mask
Returns the number of set bits (population count) in the bitmask window using fast SIMD reduction.
xor_masks
Computes the element-wise bitwise XOR of two bitmask windows.