FLINT3.7.0-dev

radix_divrem_1, radix_divexact_1, radix_divrem_two

Synopsis#include <flint/radix.h>
ulong radix_divrem_1(nn_ptr res, nn_srcptr a, slong an, ulong d, const radix_t radix)source
void radix_divexact_1(nn_ptr res, nn_srcptr a, slong an, ulong d, const radix_t radix)source
ulong radix_divrem_two(nn_ptr res, nn_srcptr a, slong an, const radix_t radix)source

Set (\mathit{res}, \mathit{an}) to \lfloor a/d \rfloor and return the remainder, for 1 \le d < B; the same assuming that d divides a (the result is undefined otherwise); and division by 2.

Cite this page

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