Module utils

Module utils 

Source
Expand description

§Utility Functions - SIMD Processing and Memory Management Utilities

Core utilities supporting SIMD kernel implementations with efficient memory handling, bitmask operations, and performance-critical helper functions.

Functions§

bitmask_to_simd_mask
Extracts a core::SIMD Mask<M, N> for a batch of N lanes from a Minarrow Bitmask.
has_nulls
Determines whether nulls are present given an optional null count and mask reference. Avoids computing mask cardinality to preserve performance guarantees.
simd_mask_to_bitmask
Converts a SIMD Mask<M, N> to a Minarrow Bitmask for the given logical length. Used at the end of a block operation within SIMD-accelerated kernel functions.
write_global_bitmask_block
Bulk-ORs a local bitmask block (from a SIMD mask or similar) into the global Minarrow bitmask at the correct byte offset. The block (block_mask) is expected to contain at least ceil(n_lanes/8) bytes, with the bit-packed validity bits starting from position 0.