Changeset c8d0eb in git


Ignore:
Timestamp:
Jun 1, 2018, 11:43:40 AM (6 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', 'b4f17ed1d25f93d46dbe29e4b499baecc2fd51bb')
Children:
e474c551e02fb0b791098bab92e6eac0be71028a
Parents:
d5f3a74ba66690d5c0da6339662441cc69fbc4b4
Message:
fix: p_Cmp, add: p_CmpPolys
File:
1 edited

Legend:

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

    rd5f3a74 rc8d0eb  
    16541654{
    16551655  if (p2==NULL)
     1656  {
     1657    if (p1==NULL) return 0;
    16561658    return 1;
     1659  }
    16571660  if (p1==NULL)
    16581661    return -1;
    16591662  return p_LmCmp(p1,p2,r);
     1663}
     1664
     1665static inline int p_CmpPolys(poly p1, poly p2, ring r)
     1666{
     1667  if (p2==NULL)
     1668  {
     1669    if (p1==NULL) return 0;
     1670    return 1;
     1671  }
     1672  if (p1==NULL)
     1673    return -1;
     1674  return p_ComparePolys(p1,p2,r);
    16601675}
    16611676
Note: See TracChangeset for help on using the changeset viewer.