FLINT3.7.0-dev

radix_mul, radix_sqr

Synopsis#include <flint/radix.h>
void radix_mul(nn_ptr res, nn_srcptr a, slong an, nn_srcptr b, slong bn, const radix_t radix)source
void radix_sqr(nn_ptr res, nn_srcptr a, slong an, const radix_t radix)source

Set (\mathit{res}, \mathit{an} + \mathit{bn}) to ab, respectively (\mathit{res}, 2\mathit{an}) to a^2. Requires \mathit{an}, \mathit{bn} \ge 1; res must not overlap the inputs. Both are calls to radix_mulmid with the full window (there is no special squaring code yet).

Guides#

Cite this page

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