FLINT3.7.0-dev

vec1d_blendv, vec4d_blendv, vec8d_blendv

Synopsis#include <flint/machine_vectors.h>
vec1d vec1d_blendv(vec1d a, vec1d b, vec1d c)source
vec4d vec4d_blendv(vec4d a, vec4d b, vec4d c)source
vec8d vec8d_blendv(vec8d a, vec8d b, vec8d c)

Returns, in each lane, b_i if the sign bit of c_i is set and a_i otherwise, so a mask from a comparison selects b where the comparison holds. vec1d_blendv instead tests c >= 0, which differs for c = -0 (selects a) and for NaNs (selects b). vec4d_blendv is available on all backends, the others on AVX2 and NEON.

Guides#

Cite this page

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