chhenning at September 23rd, 2009 10:45 — #1
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.
kenneth_gorking at September 23rd, 2009 15:26 — #2
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
chhenning at September 23rd, 2009 17:16 — #3
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?
kenneth_gorking at September 24th, 2009 04:30 — #4
No I don't, but I hope it will
roel at September 24th, 2009 05:50 — #5
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.