mirror of
https://github.com/crskycode/GARbro.git
synced 2026-06-10 15:49:00 +08:00
(MMX.PSlld): shift count limited to 32 bits.
This commit is contained in:
@@ -463,6 +463,7 @@ namespace GameRes.Formats
|
||||
|
||||
public static ulong PSllD (ulong x, int count)
|
||||
{
|
||||
count &= 0x1F;
|
||||
ulong mask = 0xFFFFFFFFu << count;
|
||||
mask |= mask << 32;
|
||||
return (x << count) & mask;
|
||||
|
||||
Reference in New Issue
Block a user