FLINT3.7.0-dev

vec1d_round, vec4d_round, vec8d_round

Synopsis#include <flint/machine_vectors.h>
vec1d vec1d_round(vec1d a)source
vec4d vec4d_round(vec4d a)source
vec8d vec8d_round(vec8d a)

Rounds to an integer in the current rounding mode: to the nearest integer, ties to even, by default. On NEON, vec4d_round and vec8d_round always round to nearest with ties to even. vec4d_round is available on all backends, the others on AVX2 and NEON.

Guides#

Cite this page

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