Macros | Typedefs | Functions
p_Mult_q.h File Reference
#include <misc/auxiliary.h>

Go to the source code of this file.

Macros

#define MIN_LENGTH_BUCKET   10
 

Typedefs

typedef polyrec * poly
 

Functions

BOOLEAN pqLength (poly p, poly q, int &lp, int &lq, const int min)
 

Macro Definition Documentation

§ MIN_LENGTH_BUCKET

#define MIN_LENGTH_BUCKET   10

Definition at line 22 of file p_Mult_q.h.

Typedef Documentation

§ poly

typedef polyrec* poly

Definition at line 17 of file p_Mult_q.h.

Function Documentation

§ pqLength()

BOOLEAN pqLength ( poly  p,
poly  q,
int &  lp,
int &  lq,
const int  min 
)

Definition at line 27 of file p_Mult_q.cc.

28 {
29  int l = 0;
30 
31  do
32  {
33  if (p == NULL)
34  {
35  lp = l;
36  if (l < min)
37  {
38  if (q != NULL)
39  lq = l+1;
40  else
41  lq = l;
42  return FALSE;
43  }
44  lq = l + pLength(q);
45  return TRUE;
46  }
47  pIter(p);
48  if (q == NULL)
49  {
50  lq = l;
51  if (l < min)
52  {
53  lp = l+1;
54  return FALSE;
55  }
56  lp = l + 1 + pLength(p);
57  return TRUE;
58  }
59  pIter(q);
60  l++;
61  }
62  while (1);
63 }
static int min(int a, int b)
Definition: fast_mult.cc:268
#define FALSE
Definition: auxiliary.h:94
return P p
Definition: myNF.cc:203
#define TRUE
Definition: auxiliary.h:98
#define pIter(p)
Definition: monomials.h:44
static unsigned pLength(poly a)
Definition: p_polys.h:189
#define NULL
Definition: omList.c:10
int l
Definition: cfEzgcd.cc:94