517{
518 if (v > level) return nullptr;
519 int which = (v == 0 ? 1 : 0);
522 result->arr.ints[which] = 1;
523 for (int i = 1; i <= level; i++)
524 {
525 which = (i == v ? 1 : 0);
526 TowerPolynomial a =
result;
528 result->arr.polys[which] = a;
529 }
531}
static TowerPolynomial alloc_poly_n(int deg, TowerPolynomial *elems=nullptr)
static TowerPolynomial alloc_poly_0(int deg, long *elems=nullptr)
VALGRIND_MAKE_MEM_DEFINED & result(result)