Module cache
Caches run-time feature detection so that it only needs to be computed once.
Structs
-
Cache
Feature cache with capacity for
size_of::<usize>() * 8 - 1features. - Initializer This type is used to initialize the cache
Functions
- detect_and_initialize
- do_initialize
- initialize
-
set_bit
Sets the
bitofx. -
test
Tests the
bitof the storage. If the storage has not been initialized, initializes it with the result ofos::detect_features(). -
test_bit
Tests the
bitofx. -
unset_bit
Unset the
bit ofx`.
Constants
- CACHE_CAPACITY Maximum number of features that can be cached.
Statics
- CACHE This global variable is a cache of the features supported by the CPU.