MCPcopy Create free account
hub / github.com/RustCrypto/utils / is_supported

Method is_supported

dit/src/lib.rs:71–76  ·  view source on GitHub ↗

Check if DIT is supported by this CPU.

(&self)

Source from the content-addressed store, hash-verified

69
70 /// Check if DIT is supported by this CPU.
71 pub fn is_supported(&self) -> bool {
72 #[cfg(target_arch = "aarch64")]
73 return self.supported.get();
74 #[cfg(not(target_arch = "aarch64"))]
75 false
76 }
77}
78
79/// RAII guard which returns DIT to its previous state when dropped.

Callers 2

enableMethod · 0.80
is_enabledMethod · 0.80

Calls 1

getMethod · 0.45

Tested by

no test coverage detected