Skip to content

Commit

Permalink
FIX: move some minor functions from polys.h -> p_polys.h
Browse files Browse the repository at this point in the history
  • Loading branch information
Oleksandr Motsak authored and mohamed-barakat committed Nov 9, 2011
1 parent a60e0bc commit aa450d0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
9 changes: 9 additions & 0 deletions libpolys/polys/monomials/p_polys.h
Original file line number Diff line number Diff line change
Expand Up @@ -388,6 +388,10 @@ void p_wrp(poly p, ring lmRing, ring tailRing);
***************************************************************/
extern pLDegProc pLDeg;
extern pFDegProc pFDeg;

static inline long p_FDeg(const poly p, const ring r) { return r->pFDeg(p,r); }
static inline long p_LDeg(const poly p, int *l, const ring r) { return r->pLDeg(p,l,r); }

long p_WFirstTotalDegree(poly p, ring r);
long p_WTotaldegree(poly p, const ring r);
long p_WDegree(poly p,const ring r);
Expand Down Expand Up @@ -1832,5 +1836,10 @@ poly p_Series(int n,poly p,poly u, intvec *w, const ring R);
poly p_Invers(int n,poly u,intvec *w, const ring R);



/*----------------------------------------------------*/
int p_Var(poly mi,const ring r);


#endif // P_POLYS_H

3 changes: 0 additions & 3 deletions libpolys/polys/polys.h
Original file line number Diff line number Diff line change
Expand Up @@ -241,8 +241,6 @@ extern BOOLEAN pVectorOut;
* Degree stuff -- see p_polys.cc for explainations
*
***************************************************************/
static inline long pFDeg(const poly p, const ring r) { return r->pFDeg(p,r); }
static inline long pLDeg(const poly p, int *l, const ring r) { return r->pLDeg(p,l,r); }
#define pWeight(c) p_Weight(c,currRing)
#define pDeg(p) p_Deg(p,currRing)
static inline long pTotaldegree(poly p) { return p_Totaldegree(p,currRing); }
Expand Down Expand Up @@ -331,7 +329,6 @@ void pSetPolyComp(poly p, int comp);

/*-----------type conversions ----------------------------*/
void pVec2Polys(poly v, polyset *p, int *len);
int p_Var(poly mi,const ring r);
#define pVar(m) p_Var(m,currRing)

/*-----------specials for spoly-computations--------------*/
Expand Down

0 comments on commit aa450d0

Please sign in to comment.