mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-04 15:19:09 +00:00
Merge pull request #11910 from lioncash/construct
PowerPC/ConditionRegister: Mark PPCToInternal() as constexpr
This commit is contained in:
commit
f561bd4285
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue