1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

freebsd floating point

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@671 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
matz 2000-04-18 04:56:28 +00:00
parent cd09e4abd8
commit c8f58f2a16

View file

@ -13,7 +13,7 @@
#include "ruby.h"
#include <math.h>
#include <stdio.h>
#ifdef __FreeBSD__
#if defined(FreeBSD) && __FreeBSD_version < 400012
#include <floatingpoint.h>
#endif
@ -1451,7 +1451,7 @@ fix_zero_p(num)
void
Init_Numeric()
{
#ifdef __FreeBSD__
#if defined(FreeBSD) && __FreeBSD_version < 400012
/* allow divide by zero -- Inf */
fpsetmask(fpgetmask() & ~(FP_X_DZ|FP_X_INV|FP_X_OFL));
#endif