[ruby-cvs:61379] naruse:r54218 (trunk): * time.c (divmodv): add the case both arguments are Fixnum.

naruse at ruby-lang.org naruse at ruby-lang.org
Tue Mar 22 03:19:15 JST 2016


naruse	2016-03-22 03:19:15 +0900 (Tue, 22 Mar 2016)

  New Revision: 54218

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

  Log:
    * time.c (divmodv): add the case both arguments are Fixnum.
    
    * time.c (wquo): use quo which has Fixnum optimization.
    
    * time.c (wdivmod0): added for WIDEVALUE_IS_WIDER.
    
    * time.c (wdivmod): use wdivmod0 and divmodv.
      divmodv has Fixnum optimization.
    
    * time.c (wdiv): use wdivmod0 and div to avoid the use of divmodv which
      calls id_quo whose return value is array.
    
    * time.c (wmod): use wdivmod0 and mod to avoid the use of divmodv which
      calls id_quo whose return value is array.

  Modified files:
    trunk/ChangeLog
    trunk/time.c


More information about the ruby-cvs mailing list