Quote Originally Posted by matsp View Post
pragma pack, as far as I know, is only for padding within structures, not stack-based alignment of arrays.

You probably want this: http://msdn.microsoft.com/en-us/library/83ythb65.aspx

--
Mats
Ah, that was exactly was I was looking for - thanks.

I changed the declaration to this:
Code:
	__declspec(align(16)) int mulConst[4] = {0x0F98A402, 0x50A89EC7, 0x8362A7DE, 0xEF83C901};
	__declspec(align(16)) int result[4] = {0};
	__declspec(align(16)) int shortBuf[4] = {0};
And it works perfectly, thanks for your help.

Daniel