FLINT3.7.0-dev

_nmod_vec_nored_scalar_addmul_halflimb, _nmod_vec_nored_scalar_addmul_halflimb_avx2

Synopsis#include <flint/nmod_vec.h>
void _nmod_vec_nored_scalar_addmul_halflimb(nn_ptr res, nn_srcptr vec, slong len, ulong c)source
void _nmod_vec_nored_scalar_addmul_halflimb_avx2(nn_ptr res, nn_srcptr vec, slong len, ulong c)source

Sets r_i \gets r_i + c \, v_i for 0 \le i < \mathit{len} without reduction, where v_i is vec[i] and r_i is the single limb res[i]. Requires c, v_i < 2^{\mathtt{FLINT\_BITS}/2} and r_i + c v_i < 2^{\mathtt{FLINT\_BITS}}. The AVX2 version is only declared on 64-bit machines with AVX2, where the first function uses it from length 16 on.

Cite this page

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