VS2005 and SSE4.1

E49352a077a28a9c0b10831b4750f142
0
chhenning 101 Sep 23, 2009 at 14:45

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.

Thanks,
Christian

4 Replies

Please log in or register to post a reply.

46407cc1bdfbd2db4f6e8876d74f990a
0
Kenneth_Gorking 101 Sep 23, 2009 at 19:26

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 :)

E49352a077a28a9c0b10831b4750f142
0
chhenning 101 Sep 23, 2009 at 21:16

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?

46407cc1bdfbd2db4f6e8876d74f990a
0
Kenneth_Gorking 101 Sep 24, 2009 at 08:30

No I don’t, but I hope it will :)

6aa952514ff4e5439df1e9e6d337b864
0
roel 101 Sep 24, 2009 at 09:50

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.