Kochol Game Engine  0.1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
kge::core::CPU Class Reference

This class checks the CPU functionality like CPU cores, SSE support. More...

#include <CPU.h>

Static Public Member Functions

static int GetCPUCount ()
 Returns the number of CPU cores available.
static int GetCPUCacheLineSize ()
static bool HasRDTSC ()
static bool HasAltiVec ()
static bool HasMMX ()
static bool Has3DNow ()
static bool HasSSE ()
static bool HasSSE2 ()
static bool HasSSE3 ()
static bool HasSSE41 ()
static bool HasSSE42 ()

Detailed Description

This class checks the CPU functionality like CPU cores, SSE support.

Definition at line 16 of file CPU.h.

Member Function Documentation

static int kge::core::CPU::GetCPUCacheLineSize ( )
static

This function returns the L1 cache line size of the CPU

This is useful for determining multi-threaded structure padding or SIMD prefetch sizes.

static int kge::core::CPU::GetCPUCount ( )
static

Returns the number of CPU cores available.

static bool kge::core::CPU::Has3DNow ( )
static

This function returns true if the CPU has 3DNow! features.

static bool kge::core::CPU::HasAltiVec ( )
static

This function returns true if the CPU has AltiVec features.

static bool kge::core::CPU::HasMMX ( )
static

This function returns true if the CPU has MMX features.

static bool kge::core::CPU::HasRDTSC ( )
static

This function returns true if the CPU has the RDTSC instruction.

static bool kge::core::CPU::HasSSE ( )
static

This function returns true if the CPU has SSE features.

static bool kge::core::CPU::HasSSE2 ( )
static

This function returns true if the CPU has SSE2 features.

static bool kge::core::CPU::HasSSE3 ( )
static

This function returns true if the CPU has SSE3 features.

static bool kge::core::CPU::HasSSE41 ( )
static

This function returns true if the CPU has SSE4.1 features.

static bool kge::core::CPU::HasSSE42 ( )
static

This function returns true if the CPU has SSE4.2 features.


The documentation for this class was generated from the following file: