Changeset 0f45cb1 in git


Ignore:
Timestamp:
Jul 21, 2008, 11:12:34 AM (16 years ago)
Author:
Motsak Oleksandr <motsak@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
c691df8cf70a169267ef0c05ea9bd356948e6e8b
Parents:
03cecc2b537db454c80c1ad5ea3912ab2f28a2e4
Message:
*motsak: nc_sa_mult...


git-svn-id: file:///usr/local/Singular/svn/trunk@10896 2c84dea3-7e68-4137-9b89-c4e89433aadc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/ncSAMult.cc

    r03cecc2 r0f45cb1  
    77 *  Author:  motsak
    88 *  Created:
    9  *  Version: $Id: ncSAMult.cc,v 1.5 2008-07-21 00:05:09 motsak Exp $
     9 *  Version: $Id: ncSAMult.cc,v 1.6 2008-07-21 09:12:34 motsak Exp $
    1010 *******************************************************************/
    1111
     
    526526
    527527        const ring r = GetBasering();
    528         const int  sign = 1 - 2*((expLeft * expRight) % 2);
     528        const int  sign = 1 - 2 * (expLeft & (expRight & 1));
    529529        poly p = p_ISet(sign, r);
    530530        p_SetExp(p, GetJ(), expLeft, r);
Note: See TracChangeset for help on using the changeset viewer.