Function cpuinfo_get_current_uarch_index_with_default

Source
pub unsafe extern "C" fn cpuinfo_get_current_uarch_index_with_default(
    default_uarch_index: u32,
) -> u32
Expand description

Identify the microarchitecture index of the core that executes the current thread. If the system does not support such identification, the function returns the user-specified default value.

There is no guarantee that the thread will stay on the same type of core for any time. Callers should treat the result as only a hint.