Project

General

Profile

« Previous | Next » 

Revision b4bbfe4b

Added by nobu (Nobuyoshi Nakada) about 7 years ago

complex.c: small optimization of Complex#**

  • complex.c (rb_complex_pow): calculate power of a Fixnum without
    allocating intermediate Complex objects, and avoid unexpected
    NaNs.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65190 b2dd03c8-39d4-4d8f-98ff-823fe69b080e