1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-28 07:07:44 +00:00

UserspaceEmulator+LibX86: Sprinkle some [[unlikely]] and ALWAYS_INLINE

This commit is contained in:
Andreas Kling 2021-03-09 15:10:08 +01:00
parent c192b6c61d
commit 656cd477c2
3 changed files with 12 additions and 9 deletions

View file

@ -833,7 +833,7 @@ ALWAYS_INLINE Instruction::Instruction(InstructionStreamType& stream, bool o32,
m_descriptor = &m_descriptor->slashes[rm() & 7];
}
if (!m_descriptor->mnemonic) {
if (!m_descriptor->mnemonic) [[unlikely]] {
if (has_sub_op()) {
if (has_slash)
fprintf(stderr, "Instruction %02X %02X /%u not understood\n", m_op, m_sub_op, slash());