From 007b8353209821f5e40f1ded06e7b0e345be0393 Mon Sep 17 00:00:00 2001 From: morkt Date: Thu, 3 Dec 2015 15:54:09 +0400 Subject: [PATCH] (MMX.PSlld): shift count limited to 32 bits. --- ArcFormats/ArcCommon.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/ArcFormats/ArcCommon.cs b/ArcFormats/ArcCommon.cs index 3182cd8d..1764c8ac 100644 --- a/ArcFormats/ArcCommon.cs +++ b/ArcFormats/ArcCommon.cs @@ -463,6 +463,7 @@ namespace GameRes.Formats public static ulong PSllD (ulong x, int count) { + count &= 0x1F; ulong mask = 0xFFFFFFFFu << count; mask |= mask << 32; return (x << count) & mask;