FLINT3.7.0-dev

flint_mpn_div

Synopsis#include <flint/mpn_extras.h>
int flint_mpn_div(mp_ptr q, mp_srcptr a, mp_size_t an, mp_srcptr b, mp_size_t bn)source

If b divides a, sets (q, \mathit{an} - \mathit{bn} + 1) to the quotient and returns 1; otherwise returns 0, the contents of q being undefined. This is a version of flint_mpn_divides based on flint_mpn_tdiv_qr.

Cite this page

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