summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2008-01-08 22:51:05 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2008-01-08 22:51:05 (GMT)
commit3777f4139d272ca93b890f2f61f5c7d9e8f29887 (patch)
tree0c5dd4b8b632c2aa0422eeaf9f53e93485c7f117 /Source
parent91edea1b8d03e900e56f0d42a0a7996d0314a0ac (diff)
downloadCMake-3777f4139d272ca93b890f2f61f5c7d9e8f29887.zip
CMake-3777f4139d272ca93b890f2f61f5c7d9e8f29887.tar.gz
CMake-3777f4139d272ca93b890f2f61f5c7d9e8f29887.tar.bz2
ENH: figure out long long value
Diffstat (limited to 'Source')
-rw-r--r--Source/kwsys/SystemInformation.cxx4
-rw-r--r--Source/kwsys/SystemInformation.hxx.in18
2 files changed, 19 insertions, 3 deletions
diff --git a/Source/kwsys/SystemInformation.cxx b/Source/kwsys/SystemInformation.cxx
index 91446ad..f0064f7 100644
--- a/Source/kwsys/SystemInformation.cxx
+++ b/Source/kwsys/SystemInformation.cxx
@@ -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
diff --git a/Source/kwsys/SystemInformation.hxx.in b/Source/kwsys/SystemInformation.hxx.in
index 40d1ea3..4894cca 100644
--- a/Source/kwsys/SystemInformation.hxx.in
+++ b/Source/kwsys/SystemInformation.hxx.in
@@ -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();