I was trying to do something like this:
int t = 100;
auto a = dsp::SIMDRegister<int>::fromNative({ t,0,0,0 });
…but the compiler (VS2017) throws an error:
Error C2397 - conversion from ‘int’ to ‘char’ requires a narrowing conversion
It compiles nicely if it’s not an INT register:
float t = 100.0f;
auto a = dsp::SIMDRegister<float>::fromNative({ t, 0.0f, 0.0f, 0.0f });
I was able to solve it this way:
int t = 100;
const dsp::SIMDRegister<int> a = _mm_set_epi32(0,0,0,t);
…but wondering if it’s a JUCE bug or it’s me not understanding something?