Permalink
Browse files

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.
  • Loading branch information...
lioncash committed Jun 21, 2018
1 parent 77f6e50 commit 4367e3aedaf59575a9da50898c8da951db32184d
Showing with 2 additions and 5 deletions.
  1. +2 −5 Source/Core/Core/DSP/Interpreter/DSPIntExtOps.cpp
@@ -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

0 comments on commit 4367e3a

Please sign in to comment.