doom3-gpl
Doom 3 GPL source release
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Macros | Typedefs | Functions
win_cpu.cpp File Reference
#include "../../idlib/precompiled.h"
#include "win_local.h"

Go to the source code of this file.

Classes

struct  bitFlag_s
 

Macros

#define _REG_EAX   0
 
#define _REG_EBX   1
 
#define _REG_ECX   2
 
#define _REG_EDX   3
 
#define NUM_LOGICAL_BITS   0x00FF0000
 
#define INITIAL_APIC_ID_BITS   0xFF000000
 
#define HT_NOT_CAPABLE   0
 
#define HT_ENABLED   1
 
#define HT_DISABLED   2
 
#define HT_SUPPORTED_NOT_ENABLED   3
 
#define HT_CANNOT_DETECT   4
 

Typedefs

typedef struct bitFlag_s bitFlag_t
 

Functions

double Sys_GetClockTicks (void)
 
double Sys_ClockTicksPerSecond (void)
 
int CPUCount (int &logicalNum, int &physicalNum)
 
cpuid_t Sys_GetCPUId (void)
 
int Sys_FPU_PrintStateFlags (char *ptr, int ctrl, int stat, int tags, int inof, int inse, int opof, int opse)
 
bool Sys_FPU_StackIsEmpty (void)
 
void Sys_FPU_ClearStack (void)
 
const char * Sys_FPU_GetState (void)
 
void Sys_FPU_EnableExceptions (int exceptions)
 
void Sys_FPU_SetPrecision (int precision)
 
void Sys_FPU_SetRounding (int rounding)
 
void Sys_FPU_SetDAZ (bool enable)
 
void Sys_FPU_SetFTZ (bool enable)
 

Macro Definition Documentation

#define _REG_EAX   0

Definition at line 164 of file win_cpu.cpp.

#define _REG_EBX   1

Definition at line 165 of file win_cpu.cpp.

#define _REG_ECX   2

Definition at line 166 of file win_cpu.cpp.

#define _REG_EDX   3

Definition at line 167 of file win_cpu.cpp.

#define HT_CANNOT_DETECT   4

Definition at line 387 of file win_cpu.cpp.

#define HT_DISABLED   2

Definition at line 385 of file win_cpu.cpp.

#define HT_ENABLED   1

Definition at line 384 of file win_cpu.cpp.

#define HT_NOT_CAPABLE   0

Definition at line 383 of file win_cpu.cpp.

#define HT_SUPPORTED_NOT_ENABLED   3

Definition at line 386 of file win_cpu.cpp.

#define INITIAL_APIC_ID_BITS   0xFF000000

Definition at line 361 of file win_cpu.cpp.

#define NUM_LOGICAL_BITS   0x00FF0000

Definition at line 343 of file win_cpu.cpp.

Typedef Documentation

typedef struct bitFlag_s bitFlag_t

Function Documentation

int CPUCount ( int logicalNum,
int physicalNum 
)

Definition at line 389 of file win_cpu.cpp.

double Sys_ClockTicksPerSecond ( void  )

Definition at line 79 of file win_cpu.cpp.

void Sys_FPU_ClearStack ( void  )

Definition at line 702 of file win_cpu.cpp.

void Sys_FPU_EnableExceptions ( int  exceptions)

Definition at line 831 of file win_cpu.cpp.

const char* Sys_FPU_GetState ( void  )

Definition at line 727 of file win_cpu.cpp.

int Sys_FPU_PrintStateFlags ( char *  ptr,
int  ctrl,
int  stat,
int  tags,
int  inof,
int  inse,
int  opof,
int  opse 
)

Definition at line 648 of file win_cpu.cpp.

void Sys_FPU_SetDAZ ( bool  enable)

Definition at line 895 of file win_cpu.cpp.

void Sys_FPU_SetFTZ ( bool  enable)

Definition at line 916 of file win_cpu.cpp.

void Sys_FPU_SetPrecision ( int  precision)

Definition at line 851 of file win_cpu.cpp.

void Sys_FPU_SetRounding ( int  rounding)

Definition at line 873 of file win_cpu.cpp.

bool Sys_FPU_StackIsEmpty ( void  )

Definition at line 683 of file win_cpu.cpp.

double Sys_GetClockTicks ( void  )

Definition at line 48 of file win_cpu.cpp.

cpuid_t Sys_GetCPUId ( void  )

Definition at line 534 of file win_cpu.cpp.