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:
parent
cd09e4abd8
commit
c8f58f2a16
@ -13,7 +13,7 @@
|
|||||||
#include "ruby.h"
|
#include "ruby.h"
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#ifdef __FreeBSD__
|
#if defined(FreeBSD) && __FreeBSD_version < 400012
|
||||||
#include <floatingpoint.h>
|
#include <floatingpoint.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -1451,7 +1451,7 @@ fix_zero_p(num)
|
|||||||
void
|
void
|
||||||
Init_Numeric()
|
Init_Numeric()
|
||||||
{
|
{
|
||||||
#ifdef __FreeBSD__
|
#if defined(FreeBSD) && __FreeBSD_version < 400012
|
||||||
/* allow divide by zero -- Inf */
|
/* allow divide by zero -- Inf */
|
||||||
fpsetmask(fpgetmask() & ~(FP_X_DZ|FP_X_INV|FP_X_OFL));
|
fpsetmask(fpgetmask() & ~(FP_X_DZ|FP_X_INV|FP_X_OFL));
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user