Hi there, does anyone know how to use the dot product instruction available with SSE4? I have Visual Studio 2005 and the intrinsic headers don't support such new version. Also, I need to use 64bit where I believe no inline assembler is possible.
The only way I can think of is to use a .asm file with the instructions but I don't know how to do that correctly.
SSE4 doesn't seem to be available in VS2005. I don't even think using assembly with VS2005 would work, because the assembler might also not have any knowledge of the SSE4 instructions.
You could upgrade to 2008, or use the 2008 express version with some trickery to get it working for 64-bit and Itanium targets. I am doing this, and it works great
Thanks Kenneth, I didn't even know that there is no 64bit in the Express version. Do you know if that will change for VS2010 Express?
No I don't, but I hope it will
Note that if you want maximum performance and you're working with 3d vectors, using SIMD that way is not optimal. Rather process four 3d vectors at the same time instead.