FLINT3.7.0-dev

flint_mpn_zero, flint_mpn_store

Synopsis#include <flint/mpn_extras.h>
void flint_mpn_zero(mp_ptr xp, mp_size_t n)source
void flint_mpn_store(mp_ptr xp, mp_size_t n, mp_limb_t y)source

Set the n limbs of xp to zero, respectively to y. These are inline loops, cheaper than calls to memset or mpn_zero for the short arrays typical of FLINT.

Guides#

Cite this page

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