J
Julian LALU
Guest
Hello!
I'm trying to set a constexpr _int128 mask but without success with MSVC 2017.
static constexpr __m128 XYZMask = {(float32)0xffffffff, (float32)0xffffffff, (float32)0xffffffff, (float32)0x00000000 };
The problem here is the compiler try to set the __m128 union with 4 float32 but it convert the value! It not casting it!
So my question is:
Is there a way to create a constexpr of an __m128 with only 0xF in all bytes with MSVC?
Thank you
Continue reading...
I'm trying to set a constexpr _int128 mask but without success with MSVC 2017.
static constexpr __m128 XYZMask = {(float32)0xffffffff, (float32)0xffffffff, (float32)0xffffffff, (float32)0x00000000 };
The problem here is the compiler try to set the __m128 union with 4 float32 but it convert the value! It not casting it!
So my question is:
Is there a way to create a constexpr of an __m128 with only 0xF in all bytes with MSVC?
Thank you
Continue reading...