mirror of
https://github.com/crskycode/GARbro.git
synced 2024-11-23 21:55:34 +08:00
(MMX): added PSRLD instruction.
This commit is contained in:
parent
5b6f4e2c27
commit
7ddc894742
@ -291,6 +291,14 @@ namespace GameRes.Formats
|
||||
mask |= mask << 32;
|
||||
return (x << count) & mask;
|
||||
}
|
||||
|
||||
public static ulong PSrlD (ulong x, int count)
|
||||
{
|
||||
count &= 0x1F;
|
||||
ulong mask = 0xFFFFFFFFu >> count;
|
||||
mask |= mask << 32;
|
||||
return (x >> count) & mask;
|
||||
}
|
||||
}
|
||||
|
||||
public static class Dump
|
||||
|
Loading…
Reference in New Issue
Block a user