FLINT3.7.0-dev

vec1d_same_mod, vec4d_same_mod

Synopsis#include <flint/machine_vectors.h>
int vec1d_same_mod(vec1d a, vec1d b, vec1d n, vec1d ninv)
int vec4d_same_mod(vec4d a, vec4d b, vec4d n, vec4d ninv)

Returns whether a_i \equiv b_i \pmod n in every lane, by comparing the results of reduce_to_0n, with the same conditions. vec1d_same_mod is available on AVX2 and NEON, vec4d_same_mod on AVX2 only.

Cite this page

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