From e049781a6dd0ca312674f52d5a35b877ec0a7fdd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Mon, 13 Jul 2026 11:25:37 +0200 Subject: [PATCH] Same as GermanAizek's #21912, but using an existing function. Replaces #21912 --- Core/MIPS/MIPSInt.cpp | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/Core/MIPS/MIPSInt.cpp b/Core/MIPS/MIPSInt.cpp index ba926a7e57..20c890ce2e 100644 --- a/Core/MIPS/MIPSInt.cpp +++ b/Core/MIPS/MIPSInt.cpp @@ -764,17 +764,7 @@ namespace MIPSInt break; case 20: // bitrev - { - u32 tmp = 0; - for (int i = 0; i < 32; i++) - { - if (R(rt) & (1 << i)) - { - tmp |= (0x80000000 >> i); - } - } - R(rd) = tmp; - } + R(rd) = ReverseBits32(R(rt)); break; case 24: // seh