[前][次][番号順一覧][スレッド一覧]

ruby-changes:65089

From: S-H-GAMELINKS <ko1@a...>
Date: Sun, 31 Jan 2021 09:24:16 +0900 (JST)
Subject: [ruby-changes:65089] 25d506a318 (master): Move rb_big_isqrt declaration

https://git.ruby-lang.org/ruby.git/commit/?id=25d506a318

From 25d506a31882a21f8c95e136a1b80ae8d5ac46fd Mon Sep 17 00:00:00 2001
From: S-H-GAMELINKS <gamelinks007@g...>
Date: Sat, 30 Jan 2021 15:36:32 +0900
Subject: Move rb_big_isqrt declaration

---
 internal/bignum.h | 1 +
 numeric.c         | 2 --
 2 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/internal/bignum.h b/internal/bignum.h
index 95c1e6e..aaada45 100644
--- a/internal/bignum.h
+++ b/internal/bignum.h
@@ -131,6 +131,7 @@ VALUE rb_big_ge(VALUE x, VALUE y); https://github.com/ruby/ruby/blob/trunk/internal/bignum.h#L131
 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 793f565..97fc239 100644
--- a/numeric.c
+++ b/numeric.c
@@ -5269,8 +5269,6 @@ DEFINE_INT_SQRT(BDIGIT, rb_bdigit_dbl, BDIGIT_DBL) https://github.com/ruby/ruby/blob/trunk/numeric.c#L5269
 #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:
-- 
cgit v1.1


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]