A64/translate/*: Apply const where applicable

Just some tidying up for consistency
This commit is contained in:
Lioncash
2019-05-25 17:25:57 -04:00
committed by MerryMage
parent dddba94c17
commit dd315e89eb
4 changed files with 109 additions and 88 deletions

View File

@@ -9,8 +9,8 @@
namespace Dynarmic::A64 {
static IR::U32U64 ReplicateBit(IREmitter& ir, const IR::U32U64& value, u8 bit_position_to_replicate) {
u8 datasize = value.GetType() == IR::Type::U64 ? 64 : 32;
auto bit = ir.LogicalShiftLeft(value, ir.Imm8(datasize - 1 - bit_position_to_replicate));
const u8 datasize = value.GetType() == IR::Type::U64 ? 64 : 32;
const auto bit = ir.LogicalShiftLeft(value, ir.Imm8(datasize - 1 - bit_position_to_replicate));
return ir.ArithmeticShiftRight(bit, ir.Imm8(datasize - 1));
}