[ruby-cvs:61362] nobu:r54201 (trunk): numeric.c: optimize Fixnum<->Bignum comparisons

nobu at ruby-lang.org nobu at ruby-lang.org
Sun Mar 20 18:53:50 JST 2016


nobu	2016-03-20 18:53:50 +0900 (Sun, 20 Mar 2016)

  New Revision: 54201

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

  Log:
    numeric.c: optimize Fixnum<->Bignum comparisons
    
    * numeric.c (fix_gt, fix_ge, fix_lt, fix_le): optimize comparisons
      Fixnum against Bignum by rb_big_cmp in inversed order without
      new Bignum instance.

  Modified files:
    trunk/ChangeLog
    trunk/numeric.c


More information about the ruby-cvs mailing list