mirror of
https://github.com/crskycode/GARbro.git
synced 2026-06-20 02:45:11 +08:00
(MMX): added PSRLD instruction.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user