_fmpz_smod
Synopsis
#include <flint/fmpz.h>Sets r to a modulo m \ne 0 in a range selected by sign: for sign < 0 the remainder of truncating division (|r| < |m|, sign of a), for 0 that of floor division (|r| < |m|, sign of m), and for sign > 0 the symmetric remainder -|m| < 2r \le |m|. The scratch variable t must not alias any other argument.
Cite this page
The FLINT team, “_fmpz_smod (fmpz.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/fmpz/_fmpz_smod.html (generated 2026-10-20).
@misc{flint-doc-fmpz-fmpz-smod,
author = {{The FLINT team}},
title = {{\_fmpz\_smod (fmpz.h)}},
howpublished = {FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev},
year = {2026},
url = {https://flintlib.org/doc/fmpz/_fmpz_smod.html},
note = {Generated 2026-10-20}
}