๐ฌThis is a nightly-only experimental API. (
stdarch_internal
)Expand description
Caches run-time feature detection so that it only needs to be computed once.
Structsยง
- Cache ๐
Experimental - Feature cache with capacity for
size_of::<usize>() * 8 - 1
features. - Initializer ๐
Experimental - This type is used to initialize the cache
Constantsยง
- CACHE_
CAPACITY ๐Experimental - Maximum number of features that can be cached.
Staticsยง
- CACHE ๐
Experimental - This global variable is a cache of the features supported by the CPU.
Functionsยง
- detect_
and_ ๐initialize Experimental - initialize ๐
Experimental - set_bit ๐
Experimental - Sets the
bit
ofx
. - test ๐
Experimental - Tests the
bit
of the storage. If the storage has not been initialized, initializes it with the result ofos::detect_features()
. - test_
bit ๐Experimental - Tests the
bit
ofx
. - unset_
bit ๐Experimental - Unset the
bit of
x`.