Index: src/platform-win32.cc |
diff --git a/src/platform-win32.cc b/src/platform-win32.cc |
index df0ec2ebaf88447deef2e30fd5615629e680e050..9c7f5a9b4f521477117e56447f354ff20273fb5e 100644 |
--- a/src/platform-win32.cc |
+++ b/src/platform-win32.cc |
@@ -1196,6 +1196,13 @@ unsigned OS::CpuFeaturesImpliedByPlatform() { |
} |
+int OS::NumberOfProcessorsOnline() { |
+ SYSTEM_INFO info; |
+ GetSystemInfo(&info); |
+ return info.dwNumberOfProcessors; |
+} |
+ |
+ |
double OS::nan_value() { |
#ifdef _MSC_VER |
// Positive Quiet NaN with no payload (aka. Indeterminate) has all bits |