Function cpuinfo_get_current_uarch_index

Source
pub unsafe extern "C" fn cpuinfo_get_current_uarch_index() -> 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 0.

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.