From bc3b70c338005530ef0629e795a1dc3203965300 Mon Sep 17 00:00:00 2001 From: Eladash Date: Tue, 14 Apr 2020 18:49:33 +0300 Subject: [PATCH] Fix ppu_rotate_mask --- rpcs3/Emu/Cell/PPUOpcodes.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpcs3/Emu/Cell/PPUOpcodes.h b/rpcs3/Emu/Cell/PPUOpcodes.h index 8d9080ea98..42dde74580 100644 --- a/rpcs3/Emu/Cell/PPUOpcodes.h +++ b/rpcs3/Emu/Cell/PPUOpcodes.h @@ -63,7 +63,7 @@ union ppu_opcode_t constexpr u64 ppu_rotate_mask(u32 mb, u32 me) { - return std::rotl(~0ull << (~(me - mb) & 63), mb); + return std::rotr(~0ull << (~(me - mb) & 63), mb); } constexpr u32 ppu_decode(u32 inst)