1- #[ cfg( target_arch = "x86_64" ) ]
2- use super :: simple_avx:: * ;
1+ // #[cfg(target_arch = "x86_64")]
2+ // use super::simple_avx::*;
33#[ cfg( all( target_arch = "aarch64" , target_feature = "neon" ) ) ]
44use super :: simple_neon:: * ;
5- #[ cfg( any( target_arch = "x86" , target_arch = "x86_64" ) ) ]
6- use super :: simple_sse:: * ;
5+ // #[cfg(any(target_arch = "x86", target_arch = "x86_64"))]
6+ // use super::simple_sse::*;
77use crate :: unaligned_vector:: { BinaryQuantized , UnalignedVector } ;
88
99#[ cfg( target_arch = "x86_64" ) ]
@@ -23,14 +23,14 @@ pub fn euclidean_distance(u: &UnalignedVector<f32>, v: &UnalignedVector<f32>) ->
2323 && is_x86_feature_detected ! ( "fma" )
2424 && u. len ( ) >= MIN_DIM_SIZE_AVX
2525 {
26- return unsafe { euclid_similarity_avx ( u, v) } ;
26+ // return unsafe { euclid_similarity_avx(u, v) };
2727 }
2828 }
2929
3030 #[ cfg( any( target_arch = "x86" , target_arch = "x86_64" ) ) ]
3131 {
3232 if is_x86_feature_detected ! ( "sse" ) && u. len ( ) >= MIN_DIM_SIZE_SIMD {
33- return unsafe { euclid_similarity_sse ( u, v) } ;
33+ // return unsafe { euclid_similarity_sse(u, v) };
3434 }
3535 }
3636
@@ -57,14 +57,14 @@ pub fn dot_product(u: &UnalignedVector<f32>, v: &UnalignedVector<f32>) -> f32 {
5757 && is_x86_feature_detected ! ( "fma" )
5858 && u. len ( ) >= MIN_DIM_SIZE_AVX
5959 {
60- return unsafe { dot_similarity_avx ( u, v) } ;
60+ // return unsafe { dot_similarity_avx(u, v) };
6161 }
6262 }
6363
6464 #[ cfg( any( target_arch = "x86" , target_arch = "x86_64" ) ) ]
6565 {
6666 if is_x86_feature_detected ! ( "sse" ) && u. len ( ) >= MIN_DIM_SIZE_SIMD {
67- return unsafe { dot_similarity_sse ( u, v) } ;
67+ // return unsafe { dot_similarity_sse(u, v) };
6868 }
6969 }
7070
0 commit comments