mirror of
https://github.com/azahar-emu/dynarmic.git
synced 2026-04-02 11:35:59 +02:00
disassembler_arm: Remove rotation helper function in favor of Common::RotateRight
Mildly reduces the amount of duplicated behavior
This commit is contained in:
@@ -23,14 +23,8 @@ class DisassemblerVisitor {
|
||||
public:
|
||||
using instruction_return_type = std::string;
|
||||
|
||||
u32 rotr(u32 x, int shift) {
|
||||
shift &= 31;
|
||||
if (!shift) return x;
|
||||
return (x >> shift) | (x << (32 - shift));
|
||||
}
|
||||
|
||||
u32 ArmExpandImm(int rotate, Imm8 imm8) {
|
||||
return rotr(static_cast<u32>(imm8), rotate*2);
|
||||
return Common::RotateRight(static_cast<u32>(imm8), rotate*2);
|
||||
}
|
||||
|
||||
std::string ShiftStr(ShiftType shift, Imm5 imm5) {
|
||||
|
||||
Reference in New Issue
Block a user