mirror of
https://github.com/crskycode/GARbro.git
synced 2024-12-24 20:04:13 +08:00
(MMX.PSlld): shift count limited to 32 bits.
This commit is contained in:
parent
af9ec6f096
commit
007b835320
@ -463,6 +463,7 @@ namespace GameRes.Formats
|
|||||||
|
|
||||||
public static ulong PSllD (ulong x, int count)
|
public static ulong PSllD (ulong x, int count)
|
||||||
{
|
{
|
||||||
|
count &= 0x1F;
|
||||||
ulong mask = 0xFFFFFFFFu << count;
|
ulong mask = 0xFFFFFFFFu << count;
|
||||||
mask |= mask << 32;
|
mask |= mask << 32;
|
||||||
return (x << count) & mask;
|
return (x << count) & mask;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user