title: SSE Comparison Intrinsics - How to get 1 or 0 from a comparison?
body: <p>I am trying to write the equivalent of an if statement with SSE intrinsics.</p>
  
  <p>I am using <code>__m128 _mm_cmplt_ps(__m128 a, __m128 b)</code> to do the comparison a &lt; b, and this returns <code>0xffffffff</code> or <code>0x0</code> if the comparison was respectively true or false. I would like to convert these values into 1 and 0. In order to do this, is it correct to implement the logical "and" <code>__m128 _mm_and_ps(__m128 c , __m128 d)</code>, where <code>c</code> is the result of the conversion and <code>d</code> is, e.g., <code>0xffffffff</code>?</p>
  
  <p>Thank you for your attention.</p>