diff options
author | Mitchell Johnson <ehntoo@ehntoo.org> | 2022-04-06 22:13:41 -0400 |
---|---|---|
committer | iximeow <me@iximeow.net> | 2022-04-08 06:09:30 -0700 |
commit | 434508ca1a5ee2f4bf0f1e3b9f01c5e4e167efa2 (patch) | |
tree | c43a60b0a2f2226508aa53c6250c4a2ed08f7c18 /src/armv8/a64.rs | |
parent | 390c56e720668b1fb2db9151b6258646b205963b (diff) |
Fix no_std builds
Diffstat (limited to 'src/armv8/a64.rs')
-rw-r--r-- | src/armv8/a64.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/armv8/a64.rs b/src/armv8/a64.rs index caf486f..85e2ced 100644 --- a/src/armv8/a64.rs +++ b/src/armv8/a64.rs @@ -5563,14 +5563,14 @@ impl Decoder<ARMv8> for InstDecoder { inst.operands = [ Operand::SIMDRegister(precision, Rd as u16), Operand::Register(size, Rn as u16), - Operand::Immediate(std::cmp::min(64 - scale, if size == SizeCode::X { 64 } else { 32 })), + Operand::Immediate(core::cmp::min(64 - scale, if size == SizeCode::X { 64 } else { 32 })), Operand::Nothing, ]; } else { inst.operands = [ Operand::Register(size, Rd as u16), Operand::SIMDRegister(precision, Rn as u16), - Operand::Immediate(std::cmp::min(64 - scale, if size == SizeCode::X { 64 } else { 32 })), + Operand::Immediate(core::cmp::min(64 - scale, if size == SizeCode::X { 64 } else { 32 })), Operand::Nothing, ]; } @@ -7694,7 +7694,7 @@ impl Decoder<ARMv8> for InstDecoder { let compound_idx = (op << 1) | sf; let (opcode, source_size, dest_size) = DATA_PROCESSING_3_SOURCE.get(compound_idx as usize) - .map(std::borrow::ToOwned::to_owned) + .cloned() .unwrap_or(Err(DecodeError::InvalidOpcode))?; inst.opcode = opcode; |