This is the documentation for Enlighten.
module CPU Features
Classes
Name | Description |
---|---|
Geo::GeoFpControl | Sets the state of the floating point control word, and restores the original value when the object is destroyed. |
Enums
Name | Description |
---|---|
eCpuVendor | PC CPU vendors. |
Variables
Name | Description |
---|---|
const Geo::u32 GEO_CPU_FEATURE_AVX = 0x00000100 | This cpu supports AVX. |
const Geo::u32 GEO_CPU_FEATURE_F16C = 0x00000200 | This cpu supports F16C. |
const Geo::u32 GEO_CPU_FEATURE_FMA3 = 0x00000400 | This cpu supports FMA3. |
const Geo::u32 GEO_CPU_FEATURE_FMA4 = 0x00000080 | This cpu supports FMA4. |
const Geo::u32 GEO_CPU_FEATURE_MMX = 0x00000001 | This cpu supports mmx technology. |
const Geo::u32 GEO_CPU_FEATURE_SSE = 0x00000002 | This cpu supports version 1 of SSE. |
const Geo::u32 GEO_CPU_FEATURE_SSE2 = 0x00000004 | This cpu supports version 2 of SSE. |
const Geo::u32 GEO_CPU_FEATURE_SSE3 = 0x00000008 | This cpu supports version 3 of SSE. |
const Geo::u32 GEO_CPU_FEATURE_SSE41 = 0x00000020 | This cpu supports version 4.1 of SSE. |
const Geo::u32 GEO_CPU_FEATURE_SSE42 = 0x00000040 | This cpu supports version 4.2 of SSE. |
const Geo::u32 GEO_CPU_FEATURE_SSSE3 = 0x00000010 | This cpu supports the Supplemental Streaming SIMD Extensions 3 (SSSE3). |
Functions
Name | Description |
---|---|
~GeoFpControl() | Destructor. |
GeoFpControl(bool, bool) | Constructor. |
GetCpuFeatures() | Retrieve the processors features as a set of flags. |
GetCpuVendor() | Get the PC CPU vendor. |
GetCpuVendorAsString() | Get the PC CPU vendor as a string. |
GetLogicalCpuCoreCount() | Get the number of logical cores. |
eCpuVendor
public: enum eCpuVendor
{
  CPU_VENDOR_UNKNOWN = 0,
  CPU_VENDOR_INTEL,
  CPU_VENDOR_AMD
}
PC CPU vendors.
enumerators
CPU_VENDOR_UNKNOWN | |
CPU_VENDOR_INTEL | |
CPU_VENDOR_AMD |
Geo::GeoFpControl::~GeoFpControl
public: ~GeoFpControl()
Destructor.
Geo::GeoFpControl::GeoFpControl
public: GeoFpControl
(
  bool highPrecision,
  bool enableDenormals
)
Constructor.
Sets precision mode.
Note
On supported consoles, the highPrecision and enableDenormals flags are ignored, and the mode is always
set to FTZ|DAZ for performance. The original mode is always preserved and returned to after this object is destroyed.
Parameters
[in] | highPrecision | Enable high precision. |
[in] | enableDenormals | Represent denormal numbers. |
u32 GEO_CALL Geo::GetCpuFeatures
public: u32 GEO_CALL GetCpuFeatures()
Retrieve the processors features as a set of flags.
See Also
GeoCpuID.h
eCpuVendor GEO_CALL Geo::GetCpuVendor
public: eCpuVendor GEO_CALL GetCpuVendor()
Get the PC CPU vendor.
const char* GEO_CALL Geo::GetCpuVendorAsString
public: const char *GEO_CALL GetCpuVendorAsString()
Get the PC CPU vendor as a string.
s32 GEO_CALL Geo::GetLogicalCpuCoreCount
public: s32 GEO_CALL GetLogicalCpuCoreCount()
Get the number of logical cores.