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

  • Cache 🔒 Experimental
    Feature cache with capacity for size_of::<usize::MAX>() * 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
  • do_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`.