vec1d_blendv, vec4d_blendv, vec8d_blendv
Synopsis
#include <flint/machine_vectors.h>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).
@misc{flint-doc-machine-vectors-vec1d-blendv,
author = {{The FLINT team}},
title = {{vec1d\_blendv, vec4d\_blendv, vec8d\_blendv (machine\_vectors.h)}},
howpublished = {FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev},
year = {2026},
url = {https://flintlib.org/doc/machine_vectors/vec1d_blendv.html},
note = {Generated 2026-10-20}
}