Where is _mm_prefetch in Visual Studio 2012?

I would like to use the _mm_prefetch statement. MSDN indicates that it is in the mmintrin.h header, but it is not. I am using Visual Studio 2012.

+5
source share
1 answer

Looks like an error in their documentation. I could not find him in <mmintrin.h>, but he seems to be in <xmmintrin.h>.


This compiles in VS2010:

#include <xmmintrin.h>

int main()
{

    _mm_prefetch(0,0);

    return 0;
}
+7
source

All Articles