For example, copying the sign from 40
into-104.2
must produce 104.2
I tried:
__mm256 currVal = _mm256_set1_ps(-104.2f);
__m256 takeMySign = _mm256_set1_ps(40);
_mm256_blend_ps(currVal, takeMySign, 1<<31);
But it's not working :(
For example, copying the sign from 40
into-104.2
must produce 104.2
I tried:
__mm256 currVal = _mm256_set1_ps(-104.2f);
__m256 takeMySign = _mm256_set1_ps(40);
_mm256_blend_ps(currVal, takeMySign, 1<<31);
But it's not working :(
This was already solved for AVX and AVX2, for both single (float) and double precision (double)