FLINT3.7.0-dev

radix_neg

Synopsis#include <flint/radix.h>
ulong radix_neg(nn_ptr res, nn_srcptr a, slong an, const radix_t radix)source

Sets (\mathit{res}, \mathit{an}) to the B-complement (-a) \bmod B^{an} and returns the borrow (1 if a \ne 0, 0 otherwise).

Cite this page

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