I am trying to use the result of a compare operation to add to an SSE variable. I have just realised that when using the _mm_cmplt_ps
operation if the result is true it returns a NAN because 0xffffffff can't be represented which is of no use to me:
__m128 va;
__m128 vb;
__m128 result =_mm_set1_ps(0.0f);
vb = _mm_cmplt_ps(va,vb);
result = _mm_add_ps(result,vb); // problem is that I would like to convert vb to 1.0's and 0.0's