Chromium Code Reviews

Unified Diff: src/platform-win32.cc

Issue 9599004: Set x87 FPU precision to 64-bit for MinGW on V8 init to fix failing test (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 8 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
« no previous file with comments | « no previous file | src/win32-headers.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/platform-win32.cc
===================================================================
--- src/platform-win32.cc (revision 10912)
+++ src/platform-win32.cc (working copy)
@@ -539,6 +539,10 @@
void OS::SetUp() {
+#ifdef __MINGW32__
+ // Set x87 FPU precision to 64-bit to be consistent with MSVC.
+ _controlfp(_PC_53, _MCW_PC);
+#endif
// Seed the random number generator.
// Convert the current time to a 64-bit integer first, before converting it
// to an unsigned. Going directly can cause an overflow and the seed to be
« no previous file with comments | « no previous file | src/win32-headers.h » ('j') | no next file with comments »

Powered by Google App Engine