static const _declspec(align(16)) int _ps256_inv_sign_mask[8] = { ~0x80000000, ~0x80000000, ~0x80000000, ~0x80000000 ,~0x80000000, ~0x80000000, ~0x80000000, ~0x80000000 };
__m256 _mm256_abs_ps(__m256 x){
return _mm256_and_ps(x,*(__m256 *)_ps256_inv_sign_mask);
}
AVX-实现_mm256_abs_ps
最新推荐文章于 2023-05-05 08:38:14 发布