Static Public Member Functions

base::CPU Class Reference

Test for CPU features. More...

#include <libppbase/base/CPU.h>

List of all members.

Static Public Member Functions

static int has3DNow ()
 Checks if the CPU has the 3DNow! extensions.
static int hasCPUID ()
 Checks if the CPU has the CPUID command.
static int hasMMX ()
 Checks if the CPU has the MMX extensions.
static int hasSSE ()
 Checks if the CPU has the SSE extensions.
static int hasSSE2 ()
 Checks if the CPU has the SSE2 extensions.

Detailed Description

Test for CPU features.

Author:
Christoph Schwarz
Version:
$Id: CPU.h 21 2010-09-05 04:18:17Z cschwarz1 $

Member Function Documentation

static int base::CPU::has3DNow (  )  [static]

Checks if the CPU has the 3DNow! extensions.

Returns:
0 if it does not have the 3DNow! extensions
1 if it has the 3DNow! extensions
-1 if it is not known if it has the 3DNow! extensions
static int base::CPU::hasCPUID (  )  [static]

Checks if the CPU has the CPUID command.

Returns:
0 if it does not have the CPUID command
1 if it has the CPUID command
-1 if it is not known if it has the CPUID command
static int base::CPU::hasMMX (  )  [static]

Checks if the CPU has the MMX extensions.

Returns:
0 if it does not have the MMX extensions
1 if it has the MMX extensions
-1 if it is not known if it has the MMX extensions
static int base::CPU::hasSSE (  )  [static]

Checks if the CPU has the SSE extensions.

Returns:
0 if it does not have the SSE extensions
1 if it has the SSE extensions
-1 if it is not known if it has the SSE extensions
static int base::CPU::hasSSE2 (  )  [static]

Checks if the CPU has the SSE2 extensions.

Returns:
0 if it does not have the SSE2 extensions
1 if it has the SSE2 extensions
-1 if it is not known if it has the SSE2 extensions

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