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

Method is_enabled

dit/src/lib.rs:61–68  ·  view source on GitHub ↗

Check if DIT has been enabled.

(&self)

Source from the content-addressed store, hash-verified

59
60 /// Check if DIT has been enabled.
61 pub fn is_enabled(&self) -> bool {
62 #[cfg(target_arch = "aarch64")]
63 if self.is_supported() {
64 return unsafe { get_dit_enabled() };
65 }
66
67 false
68 }
69
70 /// Check if DIT is supported by this CPU.
71 pub fn is_supported(&self) -> bool {

Callers

nothing calls this directly

Calls 2

get_dit_enabledFunction · 0.85
is_supportedMethod · 0.80

Tested by

no test coverage detected