[ruby-cvs:49948] akr:r42806 (trunk): * bignum.c (GMP_STR2BIG_DIGITS): New macro.

akr at ruby-lang.org akr at ruby-lang.org
Tue Sep 3 20:20:05 JST 2013


akr	2013-09-03 20:20:02 +0900 (Tue, 03 Sep 2013)

  New Revision: 42806

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

  Log:
    * bignum.c (GMP_STR2BIG_DIGITS): New macro.
      (str2big_gmp): New function.
      (rb_cstr_to_inum): Use str2big_gmp for big bignums.
      (rb_str2big_gmp): New function.
    
    * internal.h (rb_str2big_gmp): Declared.

  Modified files:
    trunk/ChangeLog
    trunk/bignum.c
    trunk/ext/-test-/bignum/str2big.c
    trunk/internal.h
    trunk/test/-ext-/bignum/test_str2big.rb


More information about the ruby-cvs mailing list