forked from 0ad/0ad
janwas
623e649acb
all cpu-related stuff is now defined in cpu.h (with cpu_ prefix and fully encapsulated). fix quite brittle core/HT unit/package detection. implement mkdir on VC8, where it is deprecated add strdup on MacOSX move ia32 code into separate subdir. functions implemented in asm are called ia32_asm_*. add some unix versions of sysdep functions (cannot test them) timer: fix for amd64 linux This was SVN commit r4995.
12 lines
291 B
C
12 lines
291 B
C
#ifndef INCLUDED_UCPU
|
|
#define INCLUDED_UCPU
|
|
|
|
#include "lib/sysdep/cpu.h"
|
|
|
|
extern int ucpu_isThrottlingPossible();
|
|
extern int ucpu_numPackages();
|
|
extern double ucpu_clockFrequency();
|
|
extern LibError ucpu_callByEachCPU(CpuCallback cb, void* param);
|
|
|
|
#endif // #ifndef INCLUDED_UCPU
|