diff options
author | KWSys Robot <kwrobot@kitware.com> | 2013-01-14 14:26:01 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2013-01-14 14:41:45 (GMT) |
commit | 4ba0ac7be4bbe38a7cb3334504e69db039288ad8 (patch) | |
tree | bb6826d23194e47fd3f2fc64d9f210c209f17759 /kwsysPlatformTestsCXX.cxx | |
parent | 6318834b95fb4e666f9c135a883bb953579c3c8a (diff) | |
download | CMake-4ba0ac7be4bbe38a7cb3334504e69db039288ad8.zip CMake-4ba0ac7be4bbe38a7cb3334504e69db039288ad8.tar.gz CMake-4ba0ac7be4bbe38a7cb3334504e69db039288ad8.tar.bz2 |
KWSys 2013-01-14 (6fa1c99f)
Extract upstream KWSys using the following shell commands.
$ git archive --prefix=upstream-kwsys/ 6fa1c99f | tar x
$ git shortlog --no-merges --abbrev=8 --format='%h %s' 608d6b47..6fa1c99f
Brad King (1):
84827cc1 Process: Avoid argv[0]==NULL from parsing empty command line
Rolf Eike Beer (8):
e041cd66 SystemInformation: factor out QueryMemoryBySysconf()
ea850fa0 SystemInformation: factor out QueryProcessorBySysconf()
57f06d49 SystemInformation: count processors with sysconf() on Solaris
c6057a06 SystemInformation: fix "Multi-character character constant"
5a27bd4f SystemInformation: make IsHyperThreadingSupported() return bool
342c0ad2 SystemInformation: query memory size with sysconf() on Solaris
f0b857c1 SystemInformation: cache result of IsHyperThreadingSupported()
ab0c2a09 SystemInformation: try using assembler with BorlandC
Change-Id: I072371ed35eed892a5ef62a9e9e6cad734e961d9
Diffstat (limited to 'kwsysPlatformTestsCXX.cxx')
-rw-r--r-- | kwsysPlatformTestsCXX.cxx | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/kwsysPlatformTestsCXX.cxx b/kwsysPlatformTestsCXX.cxx index ae58703..48976c4 100644 --- a/kwsysPlatformTestsCXX.cxx +++ b/kwsysPlatformTestsCXX.cxx @@ -580,3 +580,30 @@ int main() } } #endif + +#ifdef TEST_KWSYS_CXX_HAS_BORLAND_ASM +int main() +{ + int a = 1; + __asm { + xor EBX, EBX; + mov a, EBX; + } + + return a; +} +#endif + +#ifdef TEST_KWSYS_CXX_HAS_BORLAND_ASM_CPUID +int main() +{ + int a = 0; + __asm { + xor EAX, EAX; + cpuid; + mov a, EAX; + } + + return a; +} +#endif |