[ruby-cvs:49885] akr:r42743 (trunk): * bignum.c: Use GMP to accelerate big Bignum multiplication.

akr at ruby-lang.org akr at ruby-lang.org
Sat Aug 31 21:17:20 JST 2013


akr	2013-08-31 21:17:18 +0900 (Sat, 31 Aug 2013)

  New Revision: 42743

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=42743

  Log:
    * 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.

  Modified files:
    trunk/ChangeLog
    trunk/bignum.c
    trunk/configure.in
    trunk/ext/-test-/bignum/mul.c
    trunk/internal.h


More information about the ruby-cvs mailing list