Skip to main content

Module simd

Module simd 

Source
Expand description

Runtime SIMD dispatch for vector distance and bitmap operations.

Re-exports§

pub use runtime::SimdRuntime;
pub use runtime::runtime;

Modules§

bbq
BBQ rerank kernels: L2 from the exact centred query to a 1-bit-encoded candidate. centered is the centred query as packed little-endian f32 bytes (dim * 4), packed the candidate’s sign bits (dim.div_ceil(8), MSB-first per byte), residual_norm the candidate’s stored corrective factor.
hamming
Fast Hamming distance using u64 POPCNT.
runtime
Runtime SIMD detection and dispatch table.
scalar
Scalar fallback kernels for L2, cosine, and inner product.