Merge pull request #11910 from lioncash/construct

PowerPC/ConditionRegister: Mark PPCToInternal() as constexpr
This commit is contained in:
JosJuice 2023-06-08 21:26:07 +02:00 committed by GitHub
commit f561bd4285
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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;