avx512/src/f11_260.c
// negate a 12x64-bit residue.
negate a 12x64-bit residue.
negate a 12x64 - bit residue .
void negate_wide(residue_wide_t *result, const residue_wide_t *x) {
  __m256i zero = _mm256_setzero_si256();
  #pragma clang loop unroll(full)
  for (int i = 0; i < NVECTORS; ++i) {
    __m256i xv = _mm256_load_si256((__m256i*) (&x->limbs[i * VECTWIDTH]));
    xv = _mm256_sub_epi64(zero, xv);
    _mm256_store_si256((__m256i*) &result->limbs[i * VECTWIDTH], xv);
  }
}
void negate_wide ( residue_wide_t * result , const residue_wide_t * x ) { __m256i zero = _mm256_setzero_si256 ( ) ; #pragma  clang loop unroll(full) for ( int i = 0 ; i < NVECTORS ; ++ i ) { __m256i xv = _mm256_load_si256 ( ( __m256i * ) ( & x -> limbs [ i * VECTWIDTH ] ) ) ; xv = _mm256_sub_epi64 ( zero , xv ) ; _mm256_store_si256 ( ( __m256i * ) & result -> limbs [ i * VECTWIDTH ] , xv ) ; } }
negate a 12x64-bit residue.
negate a 12x64 - bit residue .