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 ri←ri+c vir_i \gets r_i + c \, v_i for 0≤i<len0 \le i < \mathit{len} without reduction, where viv_i is vec[i] and rir_i is the single limb res[i]. Requires c,vi<2FLINT_BITS/2c, v_i < 2^{\mathtt{FLINT\_BITS}/2} and ri+cvi<2FLINT_BITSr_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-11-02).