FLINT3.7.0-dev

nmod_redc_half_add, nmod_redc_half_sub, nmod_redc_half_mul

Synopsis#include <flint/nmod.h>
ulong nmod_redc_half_add(ulong x, ulong y, const nmod_redc_ctx_t ctx)source
ulong nmod_redc_half_sub(ulong x, ulong y, const nmod_redc_ctx_t ctx)source
ulong nmod_redc_half_mul(ulong x, ulong y, const nmod_redc_ctx_t ctx)source

Addition, subtraction and multiplication in Montgomery form, for inputs and output in [0, n).

Guides#

Cite this page

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