Module feature_detect

Source
Expand description

Helpers for runtime target feature detection that are shared across architectures.

Macros§

select_once 🔒
Call init once to choose an implementation, then use it for the rest of the program.
unique_masks 🔒
Given a list of identifiers, assign each one a unique sequential single-bit mask.

Structs§

Flags
Helper for working with bit flags, based on bitflags.

Functions§

get_or_init_flags_cache
Load flags from an atomic value. If the flags have not yet been initialized, call init to do so.