summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorS-H-GAMELINKS <[email protected]>2021-01-30 15:36:32 +0900
committerNobuyoshi Nakada <[email protected]>2021-01-31 09:23:51 +0900
commit25d506a31882a21f8c95e136a1b80ae8d5ac46fd (patch)
tree7606b0bcc626a639cc02d267d4129f36ef1d3b4c
parent367b5100d41ba1f08501319f1fecdd5ccb25d3db (diff)
Move rb_big_isqrt declaration
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/4135
-rw-r--r--internal/bignum.h1
-rw-r--r--numeric.c2
2 files changed, 1 insertions, 2 deletions
diff --git a/internal/bignum.h b/internal/bignum.h
index 95c1e6eacd..aaada45ed8 100644
--- a/internal/bignum.h
+++ b/internal/bignum.h
@@ -131,6 +131,7 @@ VALUE rb_big_ge(VALUE x, VALUE y);
VALUE rb_big_lt(VALUE x, VALUE y);
VALUE rb_big_le(VALUE x, VALUE y);
VALUE rb_int_powm(int const argc, VALUE * const argv, VALUE const num);
+VALUE rb_big_isqrt(VALUE n);
static inline bool BIGNUM_SIGN(VALUE b);
static inline bool BIGNUM_POSITIVE_P(VALUE b);
static inline bool BIGNUM_NEGATIVE_P(VALUE b);
diff --git a/numeric.c b/numeric.c
index 793f56551c..97fc239211 100644
--- a/numeric.c
+++ b/numeric.c
@@ -5269,8 +5269,6 @@ DEFINE_INT_SQRT(BDIGIT, rb_bdigit_dbl, BDIGIT_DBL)
#define domain_error(msg) \
rb_raise(rb_eMathDomainError, "Numerical argument is out of domain - " #msg)
-VALUE rb_big_isqrt(VALUE);
-
/*
* Document-method: Integer::sqrt
* call-seq: