[ruby-cvs:61398] mrkn:r54237 (trunk): * enum.c (ary_inject_op): Use Kahan's compensated summation algorithm

mrkn at ruby-lang.org mrkn at ruby-lang.org
Wed Mar 23 21:41:00 JST 2016


mrkn	2016-03-23 21:41:00 +0900 (Wed, 23 Mar 2016)

  New Revision: 54237

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

  Log:
    * enum.c (ary_inject_op): Use Kahan's compensated summation algorithm
      for summing up float values.

  Modified files:
    trunk/ChangeLog
    trunk/enum.c
    trunk/test/ruby/test_enum.rb


More information about the ruby-cvs mailing list