Module cache

Source
๐Ÿ”ฌ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 of x.
test ๐Ÿ”’ Experimental
Tests the bit of the storage. If the storage has not been initialized, initializes it with the result of os::detect_features().
test_bit ๐Ÿ”’ Experimental
Tests the bit of x.
unset_bit ๐Ÿ”’ Experimental
Unset the bit of x`.