[ruby-cvs:61374] naruse:r54213 (trunk): * time.c (mod): Add Fixnum case.

naruse at ruby-lang.org naruse at ruby-lang.org
Mon Mar 21 22:17:45 JST 2016


naruse	2016-03-21 22:17:45 +0900 (Mon, 21 Mar 2016)

  New Revision: 54213

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

  Log:
    * time.c (mod): Add Fixnum case.
    
    * time.c (quo): c can be Fixnum except a == FIXNUM_MIN && b == -1.
      Such case can be optimized out because quo()'s argument is constant.

  Modified files:
    trunk/ChangeLog
    trunk/time.c


More information about the ruby-cvs mailing list