summaryrefslogtreecommitdiffstats
path: root/SystemInformation.hxx.in
diff options
context:
space:
mode:
authorKWSys Upstream <kwrobot@kitware.com>2017-05-25 13:40:27 (GMT)
committerBrad King <brad.king@kitware.com>2017-05-25 13:40:58 (GMT)
commit402c6c121c924e68c17ce04de8dc5d28dac6fa6e (patch)
treebcabf00ea8ce999c13bbb8fb925fbde75722365c /SystemInformation.hxx.in
parent47a8ff3491cf4892eb2b28048b5f987a4ec1187a (diff)
downloadCMake-402c6c121c924e68c17ce04de8dc5d28dac6fa6e.zip
CMake-402c6c121c924e68c17ce04de8dc5d28dac6fa6e.tar.gz
CMake-402c6c121c924e68c17ce04de8dc5d28dac6fa6e.tar.bz2
KWSys 2017-05-25 (160bed45)
Code extracted from: https://gitlab.kitware.com/utils/kwsys.git at commit 160bed451833380e9f6ddc60e709ab6800bf2129 (master). Upstream Shortlog ----------------- Brad King (1): 51859eab CONTRIBUTING: Specify clang-format version used for code style Florian Maushart (2): 684bcda6 SystemInformation: Expose CPU feature flags publicly 70b8332f SystemInformation: Add CPU_FEATURE_FPU flag
Diffstat (limited to 'SystemInformation.hxx.in')
-rw-r--r--SystemInformation.hxx.in27
1 files changed, 27 insertions, 0 deletions
diff --git a/SystemInformation.hxx.in b/SystemInformation.hxx.in
index 54e7fc1..516c505 100644
--- a/SystemInformation.hxx.in
+++ b/SystemInformation.hxx.in
@@ -26,6 +26,33 @@ class @KWSYS_NAMESPACE@_EXPORT SystemInformation
SystemInformationImplementation* Implementation;
public:
+ // possible parameter values for DoesCPUSupportFeature()
+ static const long int CPU_FEATURE_MMX = 1 << 0;
+ static const long int CPU_FEATURE_MMX_PLUS = 1 << 1;
+ static const long int CPU_FEATURE_SSE = 1 << 2;
+ static const long int CPU_FEATURE_SSE2 = 1 << 3;
+ static const long int CPU_FEATURE_AMD_3DNOW = 1 << 4;
+ static const long int CPU_FEATURE_AMD_3DNOW_PLUS = 1 << 5;
+ static const long int CPU_FEATURE_IA64 = 1 << 6;
+ static const long int CPU_FEATURE_MP_CAPABLE = 1 << 7;
+ static const long int CPU_FEATURE_HYPERTHREAD = 1 << 8;
+ static const long int CPU_FEATURE_SERIALNUMBER = 1 << 9;
+ static const long int CPU_FEATURE_APIC = 1 << 10;
+ static const long int CPU_FEATURE_SSE_FP = 1 << 11;
+ static const long int CPU_FEATURE_SSE_MMX = 1 << 12;
+ static const long int CPU_FEATURE_CMOV = 1 << 13;
+ static const long int CPU_FEATURE_MTRR = 1 << 14;
+ static const long int CPU_FEATURE_L1CACHE = 1 << 15;
+ static const long int CPU_FEATURE_L2CACHE = 1 << 16;
+ static const long int CPU_FEATURE_L3CACHE = 1 << 17;
+ static const long int CPU_FEATURE_ACPI = 1 << 18;
+ static const long int CPU_FEATURE_THERMALMONITOR = 1 << 19;
+ static const long int CPU_FEATURE_TEMPSENSEDIODE = 1 << 20;
+ static const long int CPU_FEATURE_FREQUENCYID = 1 << 21;
+ static const long int CPU_FEATURE_VOLTAGEID_FREQUENCY = 1 << 22;
+ static const long int CPU_FEATURE_FPU = 1 << 23;
+
+public:
SystemInformation();
~SystemInformation();