[ruby-cvs:49982] akr:r42840 (trunk): * bignum.c (GMP_DIV_DIGITS): New macro.

akr at ruby-lang.org akr at ruby-lang.org
Thu Sep 5 08:22:28 JST 2013


akr	2013-09-05 08:22:27 +0900 (Thu, 05 Sep 2013)

  New Revision: 42840

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

  Log:
    * bignum.c (GMP_DIV_DIGITS): New macro.
      (bary_divmod_gmp): New function.
      (rb_big_divrem_gmp): Ditto.
      (bary_divmod_branch): Ditto.
      (bary_divmod): Use bary_divmod_branch.
      (bigdivrem): Ditto.
    
    * internal.h (rb_big_divrem_gmp): Declared.

  Modified files:
    trunk/ChangeLog
    trunk/bignum.c
    trunk/ext/-test-/bignum/div.c
    trunk/internal.h
    trunk/test/-ext-/bignum/test_div.rb
    trunk/test/ruby/test_bignum.rb


More information about the ruby-cvs mailing list