Changeset 4def554 in git


Ignore:
Timestamp:
Jan 25, 2013, 5:21:43 PM (10 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'a800fe4b3e9d37a38c5a10cc0ae9dfa0c15a4ee6')
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.