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

chore: move memfd detect to detect crate (#213)

Signed-off-by: usamoi <usamoi@outlook.com>
This commit is contained in:
Usamoi
2023-12-28 19:14:55 +08:00
committed by GitHub
parent 4d34b45b23
commit 2dc6b721f3
11 changed files with 157 additions and 123 deletions

View File

@ -0,0 +1,6 @@
#![cfg(target_os = "linux")]
#[test]
fn print() {
assert_eq!(detect::linux::test_memfd(), detect::linux::detect_memfd());
}

View File

@ -0,0 +1,12 @@
#![cfg(target_arch = "x86_64")]
#[test]
fn print() {
assert_eq!(
detect::x86_64::test_avx512fp16(),
detect::x86_64::detect_avx512fp16()
);
assert_eq!(detect::x86_64::test_v4(), detect::x86_64::detect_v4());
assert_eq!(detect::x86_64::test_v3(), detect::x86_64::detect_v3());
assert_eq!(detect::x86_64::test_v2(), detect::x86_64::detect_v2());
}