mirror of
https://github.com/crskycode/GARbro.git
synced 2026-07-08 01:30:18 +08:00
(MMX): added PSRLD instruction.
This commit is contained in:
@@ -291,6 +291,14 @@ namespace GameRes.Formats
|
|||||||
mask |= mask << 32;
|
mask |= mask << 32;
|
||||||
return (x << count) & mask;
|
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
|
public static class Dump
|
||||||
|
|||||||
Reference in New Issue
Block a user