/*
Copyright (C) 2019-2020 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 3 of the License, or
(at your option) any later version. See <https://www.gnu.org/licenses/>.
*/
#include "mpoly.h"
#include "fmpz_mod_mpoly.h"
int fmpz_mod_mpoly_term_exp_fits_ui(const fmpz_mod_mpoly_t A, slong i, const fmpz_mod_mpoly_ctx_t ctx)
{
return A->bits <= FLINT_BITS ? 1
: mpoly_term_exp_fits_ui(A->exps, A->bits, i, ctx->minfo);
}
int fmpz_mod_mpoly_term_exp_fits_si(const fmpz_mod_mpoly_t A, slong i, const fmpz_mod_mpoly_ctx_t ctx)
{
return A->bits <= FLINT_BITS ? 1
: mpoly_term_exp_fits_si(A->exps, A->bits, i, ctx->minfo);
}