You've already forked pgvecto.rs
mirror of
https://github.com/tensorchord/pgvecto.rs.git
synced 2025-07-30 19:23:05 +03:00
@ -33,7 +33,8 @@ pub fn cosine<'a>(lhs: BinaryVecRef<'a>, rhs: BinaryVecRef<'a>) -> F32 {
|
|||||||
#[cfg(target_arch = "x86_64")]
|
#[cfg(target_arch = "x86_64")]
|
||||||
if detect::x86_64::detect_avx512vpopcntdq() {
|
if detect::x86_64::detect_avx512vpopcntdq() {
|
||||||
unsafe {
|
unsafe {
|
||||||
return c::v_binary_cosine_avx512vpopcntdq(lhs.as_ptr(), rhs.as_ptr(), lhs.len()).into();
|
return c::v_binary_cosine_avx512vpopcntdq(lhs.as_ptr(), rhs.as_ptr(), lhs.len())
|
||||||
|
.into();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#[cfg(target_arch = "x86_64")]
|
#[cfg(target_arch = "x86_64")]
|
||||||
|
Reference in New Issue
Block a user