Changeset 4def554 in git for Singular/iparith.cc


Ignore:
Timestamp:
Jan 25, 2013, 5:21:43 PM (10 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', '8d54773d6c9e2f1d2593a28bc68b7eeab54ed529')
Children:
687272a659feb32db61b3cd8137d48231f1d95a8
Parents:
511f2dc03c6243e6c3215c95cb05254f3cea69b7
Message:
opt.: int power with +/-1'(Singular/iparith.cc)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/iparith.cc

    r511f2d r4def554  
    524524    {
    525525      rc=(e==0);
     526    }
     527    else if ((e==0)||(b==1))
     528    {
     529      rc= 1;
     530    }
     531    else if (b== -1)
     532    {
     533      if (e&1) rc= -1;
     534      else     rc= 1;
    526535    }
    527536    else
Note: See TracChangeset for help on using the changeset viewer.