[ruby-cvs:61719] nobu:r54557 (trunk): numeric.c: int_round_zero_p

nobu at ruby-lang.org nobu at ruby-lang.org
Wed Apr 13 14:12:01 JST 2016


nobu	2016-04-13 14:12:01 +0900 (Wed, 13 Apr 2016)

  New Revision: 54557

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=54557

  Log:
    numeric.c: int_round_zero_p
    
    * bignum.c (rb_big_size): add wrapper function of BIGSIZE and
      rename the method funtion with _m suffix.
    * numeric.c (int_round_zero_p): extracted from rb_int_round.
      optimize for Bignum, and convert VALUE returned by Numeric#size
      to long.

  Modified files:
    trunk/ChangeLog
    trunk/bignum.c
    trunk/internal.h
    trunk/numeric.c


More information about the ruby-cvs mailing list