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)sourceIf 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).
@misc{flint-doc-mpn-extras-flint-mpn-div,
author = {{The FLINT team}},
title = {{flint\_mpn\_div (mpn\_extras.h)}},
howpublished = {FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev},
year = {2026},
url = {https://flintlib.org/doc/mpn_extras/flint_mpn_div.html},
note = {Generated 2026-10-20}
}