Commit adf4f462 authored by serg@serg.mysql.com's avatar serg@serg.mysql.com

apply freebsd/alpha portability patch

parent 8c01c96f
...@@ -112,8 +112,13 @@ typedef fp_except fp_except_t; ...@@ -112,8 +112,13 @@ typedef fp_except fp_except_t;
inline void reset_floating_point_exceptions() inline void reset_floating_point_exceptions()
{ {
/* Don't fall for overflow, underflow,divide-by-zero or loss of precision */ /* 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 | #if defined(__i386__)
FP_X_DZ | FP_X_IMP)); 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 #else
#define reset_floating_point_exceptions() #define reset_floating_point_exceptions()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment