Module std_detect::detect::cache
source · 🔬This is a nightly-only experimental API. (
stdsimd
)Expand description
Caches run-time feature detection so that it only needs to be computed once.
Structs
- Feature cache with capacity for
size_of::<usize::MAX>() * 8 - 1
features. - This type is used to initialize the cache
Constants
- Maximum number of features that can be cached.
Statics
- This global variable is a cache of the features supported by the CPU.
Functions
- Sets the
bit
ofx
. - Tests the
bit
of the storage. If the storage has not been initialized, initializes it with the result ofos::detect_features()
. - Tests the
bit
ofx
. - Unset the
bit of
x`.