FLINT3.7.0-dev

mpn_mod_init, mpn_mod_clear, mpn_mod_swap

Synopsis#include <flint/mpn_mod.h>
void mpn_mod_init(nn_ptr x, gr_ctx_t ctx)source
void mpn_mod_clear(nn_ptr x, gr_ctx_t ctx)source
void mpn_mod_swap(nn_ptr x, nn_ptr y, gr_ctx_t ctx)source

mpn_mod_init sets the \ell limbs at x to zero, mpn_mod_clear does nothing (elements own no memory) and mpn_mod_swap swaps the limbs of x and y.

Cite this page

The FLINT team, “mpn_mod_init, mpn_mod_clear, mpn_mod_swap (mpn_mod.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/mpn_mod/mpn_mod_init.html (generated 2026-10-20).