chsvlib
chsv helper source code

◆ get_x86_cpu_info()

unsigned long long Chusov::get_x86_cpu_info ( )
noexcept

Returns a bit mask indicating a support by the current processor of various Intel x86 and Intel x86-64 CPU extensions.

Returns
The bit mask corresponding to CPU technologies supported by the current central processor.

If the current processor implements neither Intel x86 nor Intel x86-64 instruction sets nor does it support the Intel CPUID instruction, the function returns zero. Otherwise, the function calls the CPUID instruction and returns a value composed (with bitwise OR) of the values in the table.