731{
732 int i;
733 if (g == nullptr) return;
734 if (f == nullptr)
735 {
738 return;
739 }
740 int fdeg = f->deg;
741 int gdeg = g->deg;
742
744 for (i = 0; i <= gdeg; i++)
746 if (gdeg > fdeg)
747 f->deg = gdeg;
748 else if (gdeg == fdeg)
749 {
750
751 for (int j = fdeg; j >= 0; --j)
752 if (f->arr.ints[j] != 0)
753 {
754 f->deg = j;
755 return;
756 }
757
759 }
760}
static TowerPolynomial copy(int level, const TowerPolynomial f)
static void increase_size_0(int newdeg, TowerPolynomial &f)
static void dealloc_poly(TowerPolynomial &f)
void negate_in_place(int level, TowerPolynomial &f)
void ZZp_SUBTRACT_TO(long charac, long &a, long b)