pub(crate) fn test(bit: u32) -> bool
🔬This is a nightly-only experimental API. (
stdarch_internal
)Expand description
Tests the bit
of the storage. If the storage has not been initialized,
initializes it with the result of os::detect_features()
.
On its first invocation, it detects the CPU features and caches them in the
CACHE
global variable as an AtomicU64
.
It uses the Feature
variant to index into this variable as a bitset. If
the bit is set, the feature is enabled, and otherwise it is disabled.