1
- #[ cfg( target_arch = "x86_64" ) ]
2
- use super :: simple_avx:: * ;
1
+ // #[cfg(target_arch = "x86_64")]
2
+ // use super::simple_avx::*;
3
3
#[ cfg( all( target_arch = "aarch64" , target_feature = "neon" ) ) ]
4
4
use 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::*;
7
7
use crate :: unaligned_vector:: { BinaryQuantized , UnalignedVector } ;
8
8
9
9
#[ cfg( target_arch = "x86_64" ) ]
@@ -23,14 +23,14 @@ pub fn euclidean_distance(u: &UnalignedVector<f32>, v: &UnalignedVector<f32>) ->
23
23
&& is_x86_feature_detected ! ( "fma" )
24
24
&& u. len ( ) >= MIN_DIM_SIZE_AVX
25
25
{
26
- return unsafe { euclid_similarity_avx ( u, v) } ;
26
+ // return unsafe { euclid_similarity_avx(u, v) };
27
27
}
28
28
}
29
29
30
30
#[ cfg( any( target_arch = "x86" , target_arch = "x86_64" ) ) ]
31
31
{
32
32
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) };
34
34
}
35
35
}
36
36
@@ -57,14 +57,14 @@ pub fn dot_product(u: &UnalignedVector<f32>, v: &UnalignedVector<f32>) -> f32 {
57
57
&& is_x86_feature_detected ! ( "fma" )
58
58
&& u. len ( ) >= MIN_DIM_SIZE_AVX
59
59
{
60
- return unsafe { dot_similarity_avx ( u, v) } ;
60
+ // return unsafe { dot_similarity_avx(u, v) };
61
61
}
62
62
}
63
63
64
64
#[ cfg( any( target_arch = "x86" , target_arch = "x86_64" ) ) ]
65
65
{
66
66
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) };
68
68
}
69
69
}
70
70
0 commit comments