Skip to main content

Module simd

Module simd 

Source
Expand description

Runtime SIMD dispatch for vector distance and bitmap operations.

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.

Structs§

SimdRuntime
Selected SIMD runtime — function pointers to the best available kernels.

Functions§

runtime
Get the global SIMD runtime (auto-detects on first call).