summaryrefslogtreecommitdiff
path: root/Source
diff options
context:
space:
mode:
authorLéo Lam <leo@innovatetechnologi.es>2018-06-05 00:08:00 +0200
committerGitHub <noreply@github.com>2018-06-05 00:08:00 +0200
commitb7a8deda9630a2a59dbd78a47d50ad54ff2ae4e0 (patch)
treea2a03ba4c78754d2d52ad2531c0204b290870abf /Source
parent226f88bcb6f907135300ac647fcdf2c30ca1f352 (diff)
parent25d38c0a23c7746f6fd46284aaf9c7ddd9b95a5a (diff)
Merge pull request #7074 from lioncash/paired
Interpreter_LoadStorePaired: Simplify type aliases in QuantizeAndStore() and LoadAndDequantize()
Diffstat (limited to 'Source')
-rw-r--r--Source/Core/Core/PowerPC/Interpreter/Interpreter_LoadStorePaired.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/Core/Core/PowerPC/Interpreter/Interpreter_LoadStorePaired.cpp b/Source/Core/Core/PowerPC/Interpreter/Interpreter_LoadStorePaired.cpp
index 02c0468a97..664a47d575 100644
--- a/Source/Core/Core/PowerPC/Interpreter/Interpreter_LoadStorePaired.cpp
+++ b/Source/Core/Core/PowerPC/Interpreter/Interpreter_LoadStorePaired.cpp
@@ -155,7 +155,8 @@ void WritePair<u32>(u32 val1, u32 val2, u32 addr)
template <typename T>
void QuantizeAndStore(double ps0, double ps1, u32 addr, u32 instW, u32 stScale)
{
- typedef typename std::make_unsigned<T>::type U;
+ using U = std::make_unsigned_t<T>;
+
U convPS0 = (U)ScaleAndClamp<T>(ps0, stScale);
if (instW)
{
@@ -225,7 +226,8 @@ void Interpreter::Helper_Quantize(u32 addr, u32 instI, u32 instRS, u32 instW)
template <typename T>
std::pair<float, float> LoadAndDequantize(u32 addr, u32 instW, u32 ldScale)
{
- typedef typename std::make_unsigned<T>::type U;
+ using U = std::make_unsigned_t<T>;
+
float ps0, ps1;
if (instW)
{