2000-02-21 20:48:28 +00:00
|
|
|
--- 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 @@
|
2000-02-20 20:53:58 +00:00
|
|
|
inline void reset_floating_point_exceptions()
|
|
|
|
{
|
|
|
|
/* Don't fall for overflow, underflow,divide-by-zero or loss of precision */
|
2000-02-21 20:48:28 +00:00
|
|
|
- fpsetmask(~(FP_X_INV | FP_X_DNML | FP_X_OFL | FP_X_UFL |
|
|
|
|
- FP_X_DZ | FP_X_IMP));
|
2000-02-20 20:53:58 +00:00
|
|
|
+#if defined(__i386__)
|
2000-02-21 20:48:28 +00:00
|
|
|
+ fpsetmask(~(FP_X_INV | FP_X_DNML | FP_X_OFL | FP_X_UFL | FP_X_DZ | FP_X_IMP));
|
2000-02-20 20:53:58 +00:00
|
|
|
+#else
|
2000-02-21 20:48:28 +00:00
|
|
|
+ fpsetmask(~(FP_X_INV | FP_X_OFL | FP_X_UFL | FP_X_DZ | FP_X_IMP));
|
2000-02-20 20:53:58 +00:00
|
|
|
+#endif
|
|
|
|
}
|
|
|
|
#else
|
2000-02-21 20:48:28 +00:00
|
|
|
#define reset_floating_point_exceptions()
|