chore: checkpoint before Python removal

This commit is contained in:
2026-03-26 22:33:59 +00:00
parent 683cec9307
commit e568ddf82a
29972 changed files with 11269302 additions and 2 deletions

17
vendor/cpufeatures/tests/aarch64.rs vendored Normal file
View File

@@ -0,0 +1,17 @@
//! ARM64 tests
#![cfg(target_arch = "aarch64")]
cpufeatures::new!(armcaps, "aes", "sha2", "sha3", "sm4");
#[test]
fn init() {
let token: armcaps::InitToken = armcaps::init();
assert_eq!(token.get(), armcaps::get());
}
#[test]
fn init_get() {
let (token, val) = armcaps::init_get();
assert_eq!(val, token.get());
}

20
vendor/cpufeatures/tests/loongarch64.rs vendored Normal file
View File

@@ -0,0 +1,20 @@
//! LoongArch64 tests
#![cfg(target_arch = "loongarch64")]
cpufeatures::new!(
lacaps, "cpucfg", "lam", "ual", "fpu", "lsx", "lasx", "crc32", "complex", "crypto", "lvz",
"lbt.x86", "lbt.arm", "lbt.mips", "ptw"
);
#[test]
fn init() {
let token: lacaps::InitToken = lacaps::init();
assert_eq!(token.get(), lacaps::get());
}
#[test]
fn init_get() {
let (token, val) = lacaps::init_get();
assert_eq!(val, token.get());
}

17
vendor/cpufeatures/tests/x86.rs vendored Normal file
View File

@@ -0,0 +1,17 @@
//! x86/x86_64 tests
#![cfg(any(target_arch = "x86", target_arch = "x86_64"))]
cpufeatures::new!(cpuid, "aes", "sha");
#[test]
fn init() {
let token: cpuid::InitToken = cpuid::init();
assert_eq!(token.get(), cpuid::get());
}
#[test]
fn init_get() {
let (token, val) = cpuid::init_get();
assert_eq!(val, token.get());
}