Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/aienux/blob/main/vendor/cpufeatures/tests/x86.rs # aienux Aienux, the AienOS kernel: boot, scheduling, IPC and capability boundaries. Pre-alpha; host, emulator and physical evidence are labelled separately. Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `aienux / vendor / cpufeatures / tests / x86.rs` 17 lines ยท 339 bytes Raw Blame History 1 //! x86/x86_64 tests 2 3 #![cfg(any(target_arch = "x86", target_arch = "x86_64"))] 4 5 cpufeatures::new!(cpuid, "aes", "sha"); 6 7 #[test] 8 fn init() { 9 let token: cpuid::InitToken = cpuid::init(); 10 assert_eq!(token.get(), cpuid::get()); 11 } 12 13 #[test] 14 fn init_get() { 15 let (token, val) = cpuid::init_get(); 16 assert_eq!(val, token.get()); 17 }