summaryrefslogtreecommitdiff
path: root/internal.h
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-08-31 12:17:18 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-08-31 12:17:18 +0000
commit83a0709174f9f99038b45914ee54acd7c126f11b (patch)
tree43ff78bd13a795e4df422caa2bcd3b8232100e7b /internal.h
parentd0d63cff8ac29b294d6751c61528bb01c4d30d64 (diff)
* bignum.c: Use GMP to accelerate big Bignum multiplication.
(bary_mul_gmp): New function. (bary_mul): Use bary_mul_gmp. (bigsq): Use different threshold with GMP. * configure.in: Detect GMP. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42743 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'internal.h')
-rw-r--r--internal.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/internal.h b/internal.h
index 377baa09ee..f33059b985 100644
--- a/internal.h
+++ b/internal.h
@@ -518,6 +518,9 @@ VALUE rb_big_mul_normal(VALUE x, VALUE y);
VALUE rb_big_mul_balance(VALUE x, VALUE y);
VALUE rb_big_mul_karatsuba(VALUE x, VALUE y);
VALUE rb_big_mul_toom3(VALUE x, VALUE y);
+#if defined(HAVE_LIBGMP) && defined(HAVE_GMP_H)
+VALUE rb_big_mul_gmp(VALUE x, VALUE y);
+#endif
VALUE rb_big_sq_fast(VALUE x);
/* file.c */