pub fn hamming_distance_u64(a: u64, b: u64) -> u32
Popcount of XOR bits between two 64-bit perceptual hashes.