Question

I would like to use instruction _mm_prefetch. MSDN specifies that it is in header mmintrin.h, but there is not. I use Visual Studio 2012.

Was it helpful?

Solution

Looks like a bug in their documentation. I couldn't find it in <mmintrin.h> either, but it appears to be in <xmmintrin.h>.


This compiles in VS2010:

#include <xmmintrin.h>

int main()
{

    _mm_prefetch(0,0);

    return 0;
}
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top