Crate hamming_rs

source ·

Modules

avx2 target specific functions
export utilies (such as cross platform aligned_alloc)

Functions

Computes hamming distance
Assumes x and y have same memory alignment
Uses highly optimized avx2 version if available
fallback on distance_faster if x and y have different alignment or if avx2 features are not available
Computes hamming distance
Assumes x and y have same length
slightly faster than naive version
Computes hamming distance (naive version)
Computes hamming weight
Uses highly optimized avx2 version if available
computes hamming weight (naive version)