MySQL Lists are EOL. Please join:

List:Commits« Previous MessageNext Message »
From:Alexey Kopytov Date:December 11 2007 9:24am
Subject:bk commit into 6.0 tree (kaa:1.2756)
View as plain text  
Below is the list of changes that have just been committed into a local
6.0 repository of kaa. When kaa does a push these changes will
be propagated to the main repository and, within 24 hours after the
push, to the public repository.
For information on how to access the public repository
see http://dev.mysql.com/doc/mysql/en/installing-source-tree.html

ChangeSet@stripped, 2007-12-11 12:24:40+03:00, kaa@polly.(none) +1 -0
  Set the FPU precision to 64 bits on 32-bit Windows.

  sql/mysqld.cc@stripped, 2007-12-11 12:24:32+03:00, kaa@polly.(none) +7 -0
    Set the FPU precision to 64 bits on 32-bit Windows.

diff -Nrup a/sql/mysqld.cc b/sql/mysqld.cc
--- a/sql/mysqld.cc	2007-12-10 21:59:20 +03:00
+++ b/sql/mysqld.cc	2007-12-11 12:24:32 +03:00
@@ -192,11 +192,18 @@ inline void setup_fpu()
               FP_X_IMP));
 #endif /* __i386__ */
 #endif /* __FreeBSD__ && HAVE_IEEEFP_H */
+
+  /*
+    x86 (32-bit) requires FPU precision to be explicitly set to 64 bit for
+    portable results of floating point operations
+  */
 #if defined(__i386__) && defined(HAVE_FPU_CONTROL_H) && defined(_FPU_DOUBLE)
   fpu_control_t cw;
   _FPU_GETCW(cw);
   cw= (cw & ~_FPU_EXTENDED) | _FPU_DOUBLE;
   _FPU_SETCW(cw);
+#elif defined(_WIN32) && !defined(_WIN64)
+  _control87(_PC_53, MCW_PC);
 #endif /* __i386__ && HAVE_FPU_CONTROL_H && _FPU_DOUBLE */
 }
 
Thread
bk commit into 6.0 tree (kaa:1.2756)Alexey Kopytov11 Dec