FLINT3.7.0-dev

vec1d_min, vec4d_min, vec8d_min, vec1d_max, vec4d_max, vec8d_max

Synopsis#include <flint/machine_vectors.h>
vec1d vec1d_min(vec1d a, vec1d b)source
vec4d vec4d_min(vec4d a, vec4d b)source
vec8d vec8d_min(vec8d a, vec8d b)
vec1d vec1d_max(vec1d a, vec1d b)source
vec4d vec4d_max(vec4d a, vec4d b)source
vec8d vec8d_max(vec8d a, vec8d b)

Returns the smaller and the larger of a and b. When a lane is unordered (a NaN is involved), AVX2 and the generic backends return the lane of b, NEON returns a NaN, and vec1d_min and vec1d_max, which are fmin and fmax, return the operand that is not a NaN. The vec4d versions are available on all backends, the others on AVX2 and NEON.

Guides#

Cite this page

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