From 25d38c0a23c7746f6fd46284aaf9c7ddd9b95a5a Mon Sep 17 00:00:00 2001 From: Lioncash Date: Mon, 4 Jun 2018 17:56:58 -0400 Subject: [PATCH] Interpreter_LoadStorePaired: Simplify type aliases in QuantizeAndStore() and LoadAndDequantize() These can just use the _t variant of make_unsigned, which eliminates the need to pull the type from the ::type member type. --- .../PowerPC/Interpreter/Interpreter_LoadStorePaired.cpp | 6 ++++-- 1 file 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 val1, u32 val2, u32 addr) template void QuantizeAndStore(double ps0, double ps1, u32 addr, u32 instW, u32 stScale) { - typedef typename std::make_unsigned::type U; + using U = std::make_unsigned_t; + U convPS0 = (U)ScaleAndClamp(ps0, stScale); if (instW) { @@ -225,7 +226,8 @@ void Interpreter::Helper_Quantize(u32 addr, u32 instI, u32 instRS, u32 instW) template std::pair LoadAndDequantize(u32 addr, u32 instW, u32 ldScale) { - typedef typename std::make_unsigned::type U; + using U = std::make_unsigned_t; + float ps0, ps1; if (instW) {