Hi everyone,
in order to have a more compact code and because I have a lot of small functions, I would like to use STL algorithms (and also because I love how they look on the screen ^^), and replace that :
[source code="cpp"]for (std::size_t i = 0 ; i != 4 ; ++i)
data = _mm_setzero_ps();
by the more compact :
[source code="cpp"]std::generate (data, data + 4, _mm_setzero_ps);
The problem is that I have a link error :
unresolved external symbol __mm_setzero_ps
The strange thing about that is that if I replace the _mm_setzero_ps by this generator function :
[source code="cpp"]__m128 Func ()
{
return _mm_setzero_ps();
}
... In my function :
std::generate (data, data + 4, Func);
It works ! So, is there an error in MSVC intrinsics definition ?
Thanks for your answer