From d3aed03563c631a2a23007f408614068461a69af Mon Sep 17 00:00:00 2001 From: Lioncash Date: Tue, 17 Jan 2017 19:42:36 -0500 Subject: [PATCH] IR: Make trivial helper functions constexpr --- Source/Core/Core/PowerPC/JitILCommon/IR.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Source/Core/Core/PowerPC/JitILCommon/IR.h b/Source/Core/Core/PowerPC/JitILCommon/IR.h index 63899b6d12..08ba3a79fc 100644 --- a/Source/Core/Core/PowerPC/JitILCommon/IR.h +++ b/Source/Core/Core/PowerPC/JitILCommon/IR.h @@ -185,22 +185,22 @@ enum Opcode using Inst = u32; using InstLoc = Inst*; -unsigned inline getOpcode(Inst i) +constexpr u32 getOpcode(Inst i) { return i & 255; } -unsigned inline isImm(Inst i) +constexpr bool isImm(Inst i) { return getOpcode(i) >= CInt16 && getOpcode(i) <= CInt32; } -unsigned inline isICmp(Inst i) +constexpr bool isICmp(Inst i) { return getOpcode(i) >= ICmpEq && getOpcode(i) <= ICmpSle; } -unsigned inline isFResult(Inst i) +constexpr bool isFResult(Inst i) { return getOpcode(i) > FResult_Start && getOpcode(i) < FResult_End; }