(MMX.PAddB): uint overload.

This commit is contained in:
morkt 2016-05-20 03:56:09 +04:00
parent 3664e9f0a7
commit 5f0e5b0c3c

View File

@ -227,6 +227,13 @@ namespace GameRes.Formats
return r;
}
public static uint PAddB (uint x, uint y)
{
uint r13 = (x & 0xFF00FF00u) + (y & 0xFF00FF00u);
uint r02 = (x & 0x00FF00FFu) + (y & 0x00FF00FFu);
return (r13 & 0xFF00FF00u) | (r02 & 0x00FF00FFu);
}
public static ulong PAddW (ulong x, ulong y)
{
ulong mask = 0xffff;