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:
Lioncash 2018-06-21 12:45:57 -04:00
parent 77f6e50493
commit 4367e3aeda
1 changed files with 2 additions and 5 deletions

View File

@ -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