FLINT3.7.0-dev

vec1d_reduce_pm1n_to_pmhn, vec4d_reduce_pm1n_to_pmhn, vec8d_reduce_pm1n_to_pmhn

Synopsis#include <flint/machine_vectors.h>
vec1d vec1d_reduce_pm1n_to_pmhn(vec1d a, vec1d n)source
vec4d vec4d_reduce_pm1n_to_pmhn(vec4d a, vec4d n)source
vec8d vec8d_reduce_pm1n_to_pmhn(vec8d a, vec8d n)

Returns a, a - n or a + n, whichever lies in [-n/2, n/2], for |a| \le 3n/2 (in particular for a \in [-n, n]). AVX2 and NEON.

Cite this page

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