114 if (i == 0)
return j;
186 if (p ==
NULL)
return;
187 if (length <= 0) length =
pLength(p);
189 int i =
LOG2(length);
211 if (p ==
NULL)
return;
212 if (length <= 0) length =
pLength(p);
214 int i =
LOG2(length);
255 while (i <= bucket->max_bucket)
297 while (i <= bucket->max_bucket)
348 if (p ==
NULL)
break;
385 if (p ==
NULL)
break;
void sBucket_Add_p(sBucket_pt bucket, poly p, int length)
adds poly p to bucket destroys p!
static int pLength(poly a)
static poly p_Copy(poly p, const ring r)
returns a copy of p
void sBucket_Merge_p(sBucket_pt bucket, poly p, int length)
Merges p into Spoly: assumes Bpoly and p have no common monoms destroys p!
void sBucketDestroy(sBucket_pt *bucket)
poly sBucketSortAdd(poly p, ring r)
Sorts p with bucketSort: p may have equal monomials.
sBucket_pt sBucketCreate(ring r)
sBucketPoly buckets[BIT_SIZEOF_LONG-3]
void sBucketClearMerge(sBucket_pt bucket, poly *p, int *length)
static void p_Delete(poly *p, const ring r)
#define omGetSpecBin(size)
ring sBucketGetRing(const sBucket_pt bucket)
Returns bucket ring.
static poly p_Merge_q(poly p, poly q, const ring r)
void sBucketDeleteAndDestroy(sBucket_pt *bucket_pt)
poly sBucketSortMerge(poly p, ring r)
Sorts p with bucketSort: assumes all monomials of p are different.
bool sIsEmpty(const sBucket_pt bucket)
Test whether bucket is empty!?
static poly p_Add_q(poly p, poly q, const ring r)
#define omFreeBin(addr, bin)
void sBucketClearAdd(sBucket_pt bucket, poly *p, int *length)
static void sBucket_Merge_m(sBucket_pt bucket, poly p)
sBucket_pt sBucketCopy(const sBucket_pt bucket)
Copy sBucket non-intrusive!!!