Merge pull request #11910 from lioncash/construct
PowerPC/ConditionRegister: Mark PPCToInternal() as constexpr
This commit is contained in:
commit
f561bd4285
|
@ -45,7 +45,7 @@ struct ConditionRegister
|
||||||
u64 fields[8];
|
u64 fields[8];
|
||||||
|
|
||||||
// Convert between PPC and internal representation of CR.
|
// Convert between PPC and internal representation of CR.
|
||||||
static u64 PPCToInternal(u8 value)
|
static constexpr u64 PPCToInternal(u8 value)
|
||||||
{
|
{
|
||||||
u64 cr_val = 0x100000000;
|
u64 cr_val = 0x100000000;
|
||||||
cr_val |= (u64) !!(value & CR_SO) << CR_EMU_SO_BIT;
|
cr_val |= (u64) !!(value & CR_SO) << CR_EMU_SO_BIT;
|
||||||
|
|
Loading…
Reference in New Issue