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/aarch64.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 / aarch64.rs` 17 lines ยท 335 bytes Raw Blame History 1 //! ARM64 tests 2 3 #![cfg(target_arch = "aarch64")] 4 5 cpufeatures::new!(armcaps, "aes", "sha2", "sha3", "sm4"); 6 7 #[test] 8 fn init() { 9 let token: armcaps::InitToken = armcaps::init(); 10 assert_eq!(token.get(), armcaps::get()); 11 } 12 13 #[test] 14 fn init_get() { 15 let (token, val) = armcaps::init_get(); 16 assert_eq!(val, token.get()); 17 }