summaryrefslogtreecommitdiff
path: root/numeric.c
diff options
context:
space:
mode:
authorTakashi Kokubun <takashikkbn@gmail.com>2021-01-18 14:52:07 -0800
committerTakashi Kokubun <takashikkbn@gmail.com>2021-01-18 14:52:33 -0800
commit9d1475c621af671494769dde5a09db4c86071474 (patch)
tree5cdd50495aad0a3c250b9fced5b9e14e9b54c01d /numeric.c
parente812b362059706d0fb4ce1ec4f8941383dda6166 (diff)
Fix JIT link failures
forgotten in https://github.com/ruby/ruby/pull/4018
Diffstat (limited to 'numeric.c')
-rw-r--r--numeric.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/numeric.c b/numeric.c
index 2ce6f8bfa6..793f56551c 100644
--- a/numeric.c
+++ b/numeric.c
@@ -1030,7 +1030,7 @@ flo_coerce(VALUE x, VALUE y)
return rb_assoc_new(rb_Float(y), x);
}
-VALUE
+MJIT_FUNC_EXPORTED VALUE
rb_float_uminus(VALUE flt)
{
return DBL2NUM(-RFLOAT_VALUE(flt));
@@ -1108,12 +1108,6 @@ rb_float_mul(VALUE x, VALUE y)
}
}
-static bool
-flo_iszero(VALUE f)
-{
- return FLOAT_ZERO_P(f);
-}
-
static double
double_div_double(double x, double y)
{
@@ -1694,7 +1688,7 @@ rb_float_eql(VALUE x, VALUE y)
#define flo_eql rb_float_eql
-VALUE
+MJIT_FUNC_EXPORTED VALUE
rb_float_abs(VALUE flt)
{
double val = fabs(RFLOAT_VALUE(flt));