mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 05:09:34 -06:00
DSPIntExtOps: Make IsSameMemArea internally linked
inline has external linkage, which doesn't really make sense here, given the function is only used within this translation unit. So we can replace inline with static. While we're at it, the code within the function can also be compressed to a single return statement.
This commit is contained in:
@ -34,13 +34,10 @@ namespace Interpreter
|
||||
{
|
||||
namespace Ext
|
||||
{
|
||||
inline bool IsSameMemArea(u16 a, u16 b)
|
||||
static bool IsSameMemArea(u16 a, u16 b)
|
||||
{
|
||||
// LM: tested on Wii
|
||||
if ((a >> 10) == (b >> 10))
|
||||
return true;
|
||||
else
|
||||
return false;
|
||||
return (a >> 10) == (b >> 10);
|
||||
}
|
||||
|
||||
// DR $arR
|
||||
|
Reference in New Issue
Block a user