On Linux and Mac, one can do
__m128 x;
__m128i n = (__m128i)x;
This operation copies the bit representation of x to n, and is useful for implementing various branch-free conditional operations operating on SSE floating point registers. On MSVC 11, it gives
eikonal-generated.h(1228) : error C2440: 'type cast' : cannot convert from '__m128' to '__m128i'; No constructor could take the source type, or constructor overload resolution was ambiguous
What is the equivalent in Microsoft Visual Studio?
Note that I am not asking for the standard float-to-int conversion function _mm_cvtepi32_ps, which does numerically meaningful conversion.