ENH: figure out long long value
This commit is contained in:
parent
91edea1b8d
commit
3777f4139d
|
@ -516,7 +516,7 @@ bool SystemInformation::RetrieveCPUIdentity()
|
|||
{
|
||||
#ifdef WIN32
|
||||
int localCPUVendor[3];
|
||||
int locallocalCPUSignature;
|
||||
int localCPUSignature;
|
||||
|
||||
// Use assembly to detect CPUID information...
|
||||
__try
|
||||
|
@ -1946,7 +1946,7 @@ unsigned long SystemInformation::GetAvailablePhysicalMemory()
|
|||
}
|
||||
|
||||
/** Get Cycle differences */
|
||||
long long SystemInformation::GetCyclesDifference (DELAY_FUNC DelayFunction,
|
||||
LongLong SystemInformation::GetCyclesDifference (DELAY_FUNC DelayFunction,
|
||||
unsigned int uiParameter)
|
||||
{
|
||||
#ifdef WIN32
|
||||
|
|
|
@ -91,6 +91,22 @@
|
|||
#include <sys/param.h>
|
||||
#include <sys/pstat.h>
|
||||
#endif
|
||||
#include <@KWSYS_NAMESPACE@/FundamentalType.h>
|
||||
|
||||
#if @KWSYS_NAMESPACE@_USE_LONG_LONG
|
||||
namespace @KWSYS_NAMESPACE@
|
||||
{
|
||||
typedef long long LongLong;
|
||||
}
|
||||
#elif @KWSYS_NAMESPACE@_USE_USE___INT64
|
||||
namespace @KWSYS_NAMESPACE@
|
||||
{
|
||||
typedef __int64 LongLong;
|
||||
}
|
||||
#else
|
||||
//# error "No Long long"
|
||||
#endif
|
||||
|
||||
|
||||
#include <@KWSYS_NAMESPACE@/stl/string>
|
||||
#include <@KWSYS_NAMESPACE@/stl/vector>
|
||||
|
@ -238,7 +254,7 @@ protected:
|
|||
unsigned char LogicalCPUPerPhysicalCPU();
|
||||
unsigned char GetAPICId();
|
||||
unsigned int IsHyperThreadingSupported();
|
||||
long long GetCyclesDifference(DELAY_FUNC, unsigned int);
|
||||
LongLong GetCyclesDifference(DELAY_FUNC, unsigned int);
|
||||
|
||||
// For Linux
|
||||
int RetreiveInformationFromCpuInfoFile();
|
||||
|
|
Loading…
Reference in New Issue