Skip to content

Commit 1d911ce

Browse files
committed
disable the simd x86 functions
1 parent 3c4377d commit 1d911ce

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/spaces/simple.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)