[ruby-cvs:61382] naruse:r54221 (trunk): * time.c (MUL_OVERFLOW_FIXWV_P): defined for FIXWV.

naruse at ruby-lang.org naruse at ruby-lang.org
Tue Mar 22 03:57:30 JST 2016


naruse	2016-03-22 03:57:30 +0900 (Tue, 22 Mar 2016)

  New Revision: 54221

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

  Log:
    * time.c (MUL_OVERFLOW_FIXWV_P): defined for FIXWV.
    
    * time.c (wmul): use MUL_OVERFLOW_FIXWV_P and only switch.
    
    * time.c (wmul): use mul which has Fixnum optimization.
    
    * time.c (rb_time_magnify): If WIDEVALUE_IS_WIDER, wmul() has the same
      optimized logic, else mul() has also the similar logic for Fixnum.
    
    * time.c (rb_time_unmagnify): almost ditto.

  Modified files:
    trunk/ChangeLog
    trunk/time.c


More information about the ruby-cvs mailing list