Changeset 5f4c293 in git for libpolys/polys


Ignore:
Timestamp:
Apr 1, 2022, 5:13:29 PM (2 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', '2a584933abf2a2d3082034c7586d38bb6de1a30a')
Children:
fa4adb584cf68f36b9e7a48ffc363b8a42f166f8
Parents:
babd99328968737f13c55314bddeae0f6da6895f
Message:
opt: simplified cmp for ring case
File:
1 edited

Legend:

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

    rbabd99 r5f4c293  
    16691669static inline int p_LtCmpOrdSgnDiffM(poly p, poly q, const ring r)
    16701670{
    1671   if(r->OrdSgn == 1)
    1672   {
    1673     return(p_LtCmp(p,q,r) == 1);
    1674   }
    1675   else
    1676   {
    1677     return(p_LmCmp(p,q,r) == -1);
    1678   }
     1671  return(p_LtCmp(p,q,r) == r->OrdSgn);
    16791672}
    16801673#endif
     
    16851678static inline int p_LtCmpOrdSgnDiffP(poly p, poly q, const ring r)
    16861679{
    1687   if(r->OrdSgn == 1)
    1688   {
    1689     return(p_LmCmp(p,q,r) == -1);
    1690   }
    1691   else
    1692   {
    1693     return(p_LtCmp(p,q,r) != -1);
    1694   }
    1695 
     1680  return(p_LmCmp(p,q,r) == -r->OrdSgn);
    16961681}
    16971682#endif
Note: See TracChangeset for help on using the changeset viewer.