diff options
author | Takashi Kokubun <[email protected]> | 2021-01-18 14:52:07 -0800 |
---|---|---|
committer | Takashi Kokubun <[email protected]> | 2021-01-18 14:52:33 -0800 |
commit | 9d1475c621af671494769dde5a09db4c86071474 (patch) | |
tree | 5cdd50495aad0a3c250b9fced5b9e14e9b54c01d /numeric.c | |
parent | e812b362059706d0fb4ce1ec4f8941383dda6166 (diff) |
Fix JIT link failures
forgotten in https://github.com/ruby/ruby/pull/4018
Diffstat (limited to 'numeric.c')
-rw-r--r-- | numeric.c | 10 |
1 files changed, 2 insertions, 8 deletions
@@ -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)); |