From 7ddc8947422f27438a31f12b33eae9bed0144673 Mon Sep 17 00:00:00 2001 From: morkt Date: Sun, 12 Mar 2017 05:39:17 +0400 Subject: [PATCH] (MMX): added PSRLD instruction. --- ArcFormats/ArcCommon.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/ArcFormats/ArcCommon.cs b/ArcFormats/ArcCommon.cs index fe453f2d..9a187efc 100644 --- a/ArcFormats/ArcCommon.cs +++ b/ArcFormats/ArcCommon.cs @@ -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