diff options
| author | Lioncash <mathew1800@gmail.com> | 2018-06-21 12:45:57 -0400 |
|---|---|---|
| committer | Lioncash <mathew1800@gmail.com> | 2018-06-21 12:46:01 -0400 |
| commit | 4367e3aedaf59575a9da50898c8da951db32184d (patch) | |
| tree | 260f033f11ef1235cc929e3f75ba3d8d749b3520 /Source | |
| parent | 77f6e50493c0433391a4da1815b09d85d1a36247 (diff) | |
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.
Diffstat (limited to 'Source')
| -rw-r--r-- | Source/Core/Core/DSP/Interpreter/DSPIntExtOps.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/Source/Core/Core/DSP/Interpreter/DSPIntExtOps.cpp b/Source/Core/Core/DSP/Interpreter/DSPIntExtOps.cpp index ef47cc1f93..1bed755c4c 100644 --- a/Source/Core/Core/DSP/Interpreter/DSPIntExtOps.cpp +++ b/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 |
