summaryrefslogtreecommitdiff
path: root/Source/Core
diff options
context:
space:
mode:
authorJosJuice <josjuice@gmail.com>2023-06-08 21:26:07 +0200
committerGitHub <noreply@github.com>2023-06-08 21:26:07 +0200
commitf561bd42858005d206cf13e0a4ac91abc5e1ee3b (patch)
tree0b33029ca525285a438613a7d0aafff20cec4547 /Source/Core
parent0d07ebab25888887ac1affbb7b79c1764b3cabcb (diff)
parent09271f365a68ba1e214e52d5367f78a4b0e2c17d (diff)
Merge pull request #11910 from lioncash/construct
PowerPC/ConditionRegister: Mark PPCToInternal() as constexpr
Diffstat (limited to 'Source/Core')
-rw-r--r--Source/Core/Core/PowerPC/ConditionRegister.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/Core/PowerPC/ConditionRegister.h b/Source/Core/Core/PowerPC/ConditionRegister.h
index 37a25ac45d..82d078ee1a 100644
--- a/Source/Core/Core/PowerPC/ConditionRegister.h
+++ b/Source/Core/Core/PowerPC/ConditionRegister.h
@@ -45,7 +45,7 @@ struct ConditionRegister
u64 fields[8];
// Convert between PPC and internal representation of CR.
- static u64 PPCToInternal(u8 value)
+ static constexpr u64 PPCToInternal(u8 value)
{
u64 cr_val = 0x100000000;
cr_val |= (u64) !!(value & CR_SO) << CR_EMU_SO_BIT;