/* Copyright (C) 2021 Daniel Schultz This file is part of FLINT. FLINT is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License (LGPL) as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. See . */ #include "fmpz.h" void fmpz_multi_CRT_clear(fmpz_multi_CRT_t P) { slong i; for (i = 0; i < P->alloc; i++) { fmpz_clear(P->prog[i].b_modulus); fmpz_clear(P->prog[i].c_modulus); fmpz_clear(P->moduli + i); fmpz_clear(P->fracmoduli + i); } flint_free(P->prog); flint_free(P->moduli); flint_free(P->fracmoduli); fmpz_clear(P->final_modulus); }