_arf_set_round_mpn
Synopsis
#include <flint/arf.h>int _arf_set_round_mpn(arf_t y, slong * exp_shift, nn_srcptr x, slong xn, int sgnbit, slong prec, arf_rnd_t rnd)sourceSets the mantissa of y to the xn limbs at x (top limb nonzero), negated if sgnbit is 1, rounded to prec bits, and returns the inexact flag. Writes the exponent shift caused by leading zero bits and by rounding up to a power of two to exp_shift without setting the exponent of y. x may point into the limbs of y, as the Newton division code does.
Cite this page
The FLINT team, “_arf_set_round_mpn (arf.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/arf/_arf_set_round_mpn.html (generated 2026-10-20).
@misc{flint-doc-arf-arf-set-round-mpn,
author = {{The FLINT team}},
title = {{\_arf\_set\_round\_mpn (arf.h)}},
howpublished = {FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev},
year = {2026},
url = {https://flintlib.org/doc/arf/_arf_set_round_mpn.html},
note = {Generated 2026-10-20}
}