carb::extras::CpuInfo

Defined in carb/extras/CpuInfo.h

class CpuInfo

Helper class for gathering and querying CPU information for x86 and x64 CPUs.

On construction this class will query the CPU information provided by CPU ID and then provides helper methods for querying information about the CPU.

Public Functions

inline CpuInfo()

Constructor.

inline bool popcntSupported()

Checks if the popcnt instruction is supported.

Returns

True if popcnt is supported, false if it is not supported, or the CPU information is not valid.