#ifdef T
#include "gr.h"
#include "gr_poly.h"
#include "templates.h"
void
_TEMPLATE(T, poly_powmod_fmpz_binexp) (
TEMPLATE(T, struct) * res,
const TEMPLATE(T, struct) * poly,
const fmpz_t e,
const TEMPLATE(T, struct) * f, slong lenf,
const TEMPLATE(T, ctx_t) ctx)
{
gr_ctx_t gr_ctx;
TEMPLATE3(_gr_ctx_init, T, from_ref)(gr_ctx, ctx);
GR_MUST_SUCCEED(_gr_poly_powmod_fmpz_binexp(res, poly, e, f, lenf, gr_ctx));
}
void
TEMPLATE(T, poly_powmod_fmpz_binexp) (TEMPLATE(T, poly_t) res,
const TEMPLATE(T, poly_t) poly,
const fmpz_t e,
const TEMPLATE(T, poly_t) f,
const TEMPLATE(T, ctx_t) ctx)
{
gr_ctx_t gr_ctx;
TEMPLATE3(_gr_ctx_init, T, from_ref)(gr_ctx, ctx);
GR_MUST_SUCCEED(gr_poly_powmod_fmpz_binexp((gr_poly_struct *) res,
(const gr_poly_struct *) poly, e,
(const gr_poly_struct *) f, gr_ctx));
}
#endif