avx512/src/f11_260.c
// Add 2 12x32-bit residues.
Add 2 12x32-bit residues.
Add 2 12x32 - bit residues .
void add_narrow(
  residue_narrow_t *result, const residue_narrow_t * __restrict x,
  const residue_narrow_t * __restrict y) {
  __m512i lhs = _mm512_load_si512((__m512i*) &x->limbs[0]);
  __m512i rhs = _mm512_load_si512((__m512i*) &y->limbs[0]);
  __m512i add = _mm512_add_epi32(lhs, rhs);
  _mm512_store_si512((__m512i*) &result->limbs[0], add);
}
void add_narrow ( residue_narrow_t * result , const residue_narrow_t * __restrict x , const residue_narrow_t * __restrict y ) { __m512i lhs = _mm512_load_si512 ( ( __m512i * ) & x -> limbs [ 0 ] ) ; __m512i rhs = _mm512_load_si512 ( ( __m512i * ) & y -> limbs [ 0 ] ) ; __m512i add = _mm512_add_epi32 ( lhs , rhs ) ; _mm512_store_si512 ( ( __m512i * ) & result -> limbs [ 0 ] , add ) ; }
Add 2 12x32-bit residues.
Add 2 12x32 - bit residues .