mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-25 15:19:42 -06:00
PowerPC: Deduplicate Helper_Mask() code
We can share this across all implementations instead of duplicating it in different ways.
This commit is contained in:
@ -22,12 +22,6 @@ void JitTrampoline(JitBase& jit, u32 em_address)
|
||||
jit.Jit(em_address);
|
||||
}
|
||||
|
||||
u32 Helper_Mask(u8 mb, u8 me)
|
||||
{
|
||||
u32 mask = ((u32)-1 >> mb) ^ (me >= 31 ? 0 : (u32)-1 >> (me + 1));
|
||||
return mb > me ? ~mask : mask;
|
||||
}
|
||||
|
||||
JitBase::JitBase() : m_code_buffer(code_buffer_size)
|
||||
{
|
||||
}
|
||||
|
@ -131,6 +131,3 @@ public:
|
||||
};
|
||||
|
||||
void JitTrampoline(JitBase& jit, u32 em_address);
|
||||
|
||||
// Merged routines that should be moved somewhere better
|
||||
u32 Helper_Mask(u8 mb, u8 me);
|
||||
|
Reference in New Issue
Block a user