ruby-cvs:19496
From: nobu ruby-lang.org
Date: Wed, 9 May 2007 11:50:05 +0900 (JST)
Subject: [ruby-cvs:19496] Ruby:r12260: * bignum.c (rb_big_pow): reduce multiplying for even number.
nobu 2007-05-09 11:50:04 +0900 (Wed, 09 May 2007)
New Revision: 12260
Modified files:
branches/ruby_1_8/ChangeLog
branches/ruby_1_8/bignum.c
Log:
* bignum.c (rb_big_pow): reduce multiplying for even number.
* bignum.c (rb_big_pow): truncate all zero BDIGITs. [ruby-dev:30733]
* bignum.c (rb_big_pow): improvement by calculating from MSB and using
factorization. <http://yowaken.dip.jp/tdiary/20070426.html#p01>
* numeric.c (int_pow): calculate power in Fixnum as possible.
[ruby-dev:30726]
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/branches/ruby_1_8/ChangeLog?r1=12260&r2=12259
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/branches/ruby_1_8/bignum.c?r1=12260&r2=12259