1
0
mirror of https://github.com/tensorchord/pgvecto.rs.git synced 2025-07-29 08:21:12 +03:00

cargo fmt

Signed-off-by: Mingzhuo Yin <yinmingzhuo@gmail.com>
This commit is contained in:
Mingzhuo Yin
2024-02-21 01:14:45 +08:00
parent 90e9a91ce8
commit 1bd49d76b6

View File

@ -33,7 +33,8 @@ pub fn cosine<'a>(lhs: BinaryVecRef<'a>, rhs: BinaryVecRef<'a>) -> F32 {
#[cfg(target_arch = "x86_64")]
if detect::x86_64::detect_avx512vpopcntdq() {
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")]