|
nfx-cpu 0.1.3
Cross-platform C++ CPU feature detection and system identification library
|
CPU identification functions. More...
#include <string>#include <cstdint>#include "nfx/detail/cpu/Identification.inl"

Go to the source code of this file.
Functions | |
| std::string | nfx::cpu::vendor () noexcept |
| Gets the CPU vendor string. | |
| std::string | nfx::cpu::brandString () noexcept |
| Gets the CPU brand string. | |
| uint32_t | nfx::cpu::family () noexcept |
| Gets the CPU family identifier. | |
| uint32_t | nfx::cpu::model () noexcept |
| Gets the CPU model identifier. | |
| uint32_t | nfx::cpu::stepping () noexcept |
| Gets the CPU stepping identifier. | |
CPU identification functions.
Runtime detection of CPU vendor, brand string, family, model, and stepping information using CPUID instructions with static caching for zero overhead
Definition in file Identification.h.
|
inlinenodiscardnoexcept |
Gets the CPU brand string.
Queries CPUID leafs 0x80000002-0x80000004 to retrieve the processor brand string. Result is cached via static initialization for zero runtime overhead. Example: "Intel(R) Core(TM) i7-12800H @ 2.80GHz"
|
inlinenodiscardnoexcept |
Gets the CPU family identifier.
Extracts the processor family from CPUID leaf 1. Combines base family + extended family for processors with family >= 15. Result is cached via static initialization for zero runtime overhead.
|
inlinenodiscardnoexcept |
Gets the CPU model identifier.
Extracts the processor model from CPUID leaf 1. Combines base model + extended model for modern processors. Result is cached via static initialization for zero runtime overhead.
|
inlinenodiscardnoexcept |
Gets the CPU stepping identifier.
Extracts the processor stepping/revision from CPUID leaf 1. Stepping identifies minor hardware revisions within the same model. Result is cached via static initialization for zero runtime overhead.
|
inlinenodiscardnoexcept |
Gets the CPU vendor string.
Queries CPUID leaf 0 to retrieve the vendor identification string. Result is cached via static initialization for zero runtime overhead. Common values: