aboutsummaryrefslogtreecommitdiffstats
path: root/databases/mysql51-server/files/patch-as
blob: 903bc9950a28f1c4f6b3cc59cd25c259cf7e6e85 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--- sql/mysqld.cc.orig  Sun Feb 13 02:40:18 2000
+++ sql/mysqld.cc   Mon Feb 21 21:24:51 2000
@@ -63,8 +63,11 @@
 inline void reset_floating_point_exceptions()
 {
   /* Don't fall for overflow, underflow,divide-by-zero or loss of precision */
-  fpsetmask(~(FP_X_INV | FP_X_DNML | FP_X_OFL | FP_X_UFL |
-         FP_X_DZ | FP_X_IMP));
+#if defined(__i386__)
+  fpsetmask(~(FP_X_INV | FP_X_DNML | FP_X_OFL | FP_X_UFL | FP_X_DZ | FP_X_IMP));
+#else
+  fpsetmask(~(FP_X_INV |             FP_X_OFL | FP_X_UFL | FP_X_DZ | FP_X_IMP));
+#endif
 }
 #else
 #define reset_floating_point_exceptions()