| Index: src/platform-win32.cc
|
| ===================================================================
|
| --- src/platform-win32.cc (revision 3332)
|
| +++ src/platform-win32.cc (working copy)
|
| @@ -1317,7 +1317,16 @@
|
|
|
|
|
| uint64_t OS::CpuFeaturesImpliedByPlatform() {
|
| +#if _M_IX86_FP == 2
|
| + // If the C++ compiler is using SSE2 then we can use that in the
|
| + // snapshot too. SSE2 implies a bunch of other features that were
|
| + // invented before SSE2. This is for MSVC++, there doesn't appear
|
| + // to be any equivalent for gcc. See
|
| + // http://msdn.microsoft.com/en-us/library/b0084kay.aspx
|
| + return (1u << SSE2) | (1u << CMOV) | (1u << RDTSC) | (1u << CPUID);
|
| +#else
|
| return 0; // Windows runs on anything.
|
| +#endif
|
| }
|
|
|
|
|
|
|