Changeset ccc9976 in git


Ignore:
Timestamp:
Jan 8, 2018, 11:09:31 AM (5 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', '91fdef05f09f54b8d58d92a472e9c4a43aa4656f')
Children:
6b02216593677b82e2b32595292b3622d7c6816e
Parents:
06a834a18bfe9a9a9d3c30ac2c75a958513056be
Message:
chg: two variants for pLmCmp
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libpolys/polys/monomials/p_polys.h

    r06a834 rccc9976  
    15241524  }
    15251525  const long* _ordsgn = (long*) r->ordsgn;
     1526#if 1 /* two variants*/
    15261527  if (_v1 > _v2)
    15271528  {
    1528     if (_ordsgn[_i] == 1) return 1;
    1529     return -1;
    1530   }
    1531   if (_ordsgn[_i] == 1) return -1;
    1532   return 1;
    1533 
     1529    return _ordsgn[_i];
     1530  }
     1531  return -(_ordsgn[_i]);
     1532#else
     1533   if (_v1 > _v2)
     1534   {
     1535     if (_ordsgn[_i] == 1) return 1;
     1536     return -1;
     1537   }
     1538   if (_ordsgn[_i] == 1) return -1;
     1539   return 1;
     1540#endif
    15341541}
    15351542
Note: See TracChangeset for help on using the changeset viewer.