My Project  UNKNOWN_GIT_VERSION
Macros | Functions
p_Mult_q.h File Reference
#include "misc/auxiliary.h"
#include "polys/monomials/ring.h"

Go to the source code of this file.

Macros

#define MIN_LENGTH_BUCKET   10
 
#define MIN_LENGTH_FACTORY   1000
 

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 21 of file p_Mult_q.h.

◆ MIN_LENGTH_FACTORY

#define MIN_LENGTH_FACTORY   1000

Definition at line 27 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 29 of file p_Mult_q.cc.

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