Skip to content

Commit aa450d0

Browse files
Oleksandr Motsakmohamed-barakat
authored andcommitted
FIX: move some minor functions from polys.h -> p_polys.h
1 parent a60e0bc commit aa450d0

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

libpolys/polys/monomials/p_polys.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -388,6 +388,10 @@ void p_wrp(poly p, ring lmRing, ring tailRing);
388388
***************************************************************/
389389
extern pLDegProc pLDeg;
390390
extern pFDegProc pFDeg;
391+
392+
static inline long p_FDeg(const poly p, const ring r) { return r->pFDeg(p,r); }
393+
static inline long p_LDeg(const poly p, int *l, const ring r) { return r->pLDeg(p,l,r); }
394+
391395
long p_WFirstTotalDegree(poly p, ring r);
392396
long p_WTotaldegree(poly p, const ring r);
393397
long p_WDegree(poly p,const ring r);
@@ -1832,5 +1836,10 @@ poly p_Series(int n,poly p,poly u, intvec *w, const ring R);
18321836
poly p_Invers(int n,poly u,intvec *w, const ring R);
18331837

18341838

1839+
1840+
/*----------------------------------------------------*/
1841+
int p_Var(poly mi,const ring r);
1842+
1843+
18351844
#endif // P_POLYS_H
18361845

libpolys/polys/polys.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -241,8 +241,6 @@ extern BOOLEAN pVectorOut;
241241
* Degree stuff -- see p_polys.cc for explainations
242242
*
243243
***************************************************************/
244-
static inline long pFDeg(const poly p, const ring r) { return r->pFDeg(p,r); }
245-
static inline long pLDeg(const poly p, int *l, const ring r) { return r->pLDeg(p,l,r); }
246244
#define pWeight(c) p_Weight(c,currRing)
247245
#define pDeg(p) p_Deg(p,currRing)
248246
static inline long pTotaldegree(poly p) { return p_Totaldegree(p,currRing); }
@@ -331,7 +329,6 @@ void pSetPolyComp(poly p, int comp);
331329

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

337334
/*-----------specials for spoly-computations--------------*/

0 commit comments

Comments
 (0)