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:
parent
77f6e50493
commit
4367e3aeda
|
@ -34,13 +34,10 @@ namespace Interpreter
|
||||||
{
|
{
|
||||||
namespace Ext
|
namespace Ext
|
||||||
{
|
{
|
||||||
inline bool IsSameMemArea(u16 a, u16 b)
|
static bool IsSameMemArea(u16 a, u16 b)
|
||||||
{
|
{
|
||||||
// LM: tested on Wii
|
// LM: tested on Wii
|
||||||
if ((a >> 10) == (b >> 10))
|
return (a >> 10) == (b >> 10);
|
||||||
return true;
|
|
||||||
else
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// DR $arR
|
// DR $arR
|
||||||
|
|
Loading…
Reference in New Issue