Skip to content

Commit

Permalink
write optimized xor func
Browse files Browse the repository at this point in the history
  • Loading branch information
cevian committed Jan 24, 2024
1 parent 11d7645 commit ec332f4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions timescale_vector/src/access_method/distance.rs
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ macro_rules! xor_arm {
#[inline]
pub fn distance_xor_optimized(a: &[u64], b: &[u64]) -> usize {
match a.len() {
0 => 0,
24 => xor_arm!(a, b, 24),
1 => xor_arm!(a, b, 1),
2 => xor_arm!(a, b, 2),
3 => xor_arm!(a, b, 3),
Expand All @@ -176,7 +176,6 @@ pub fn distance_xor_optimized(a: &[u64], b: &[u64]) -> usize {
21 => xor_arm!(a, b, 21),
22 => xor_arm!(a, b, 22),
23 => xor_arm!(a, b, 23),
24 => xor_arm!(a, b, 24),
25 => xor_arm!(a, b, 25),
26 => xor_arm!(a, b, 26),
27 => xor_arm!(a, b, 27),
Expand Down

0 comments on commit ec332f4

Please sign in to comment.