[ruby-cvs:66867] nobu:r59689 (trunk): array.c: integer calculations

nobu at ruby-lang.org nobu at ruby-lang.org
Wed Aug 30 14:36:59 JST 2017


nobu	2017-08-30 14:36:59 +0900 (Wed, 30 Aug 2017)

  New Revision: 59689

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

  Log:
    array.c: integer calculations
    
    * array.c (rb_ary_cycle_size, descending_factorial): use
      rb_int_mul instead of rb_funcallv.
    
    * array.c (binomial_coefficient): use rb_int_idiv instead of
      rb_funcallv.
    
    * array.c (rb_ary_repeated_permutation_size): use
      rb_int_positive_pow.

  Modified files:
    trunk/array.c
    trunk/test/ruby/test_array.rb


More information about the ruby-cvs mailing list