diff options
Diffstat (limited to 'Source/Core/Core/PowerPC/Expression.cpp')
| -rw-r--r-- | Source/Core/Core/PowerPC/Expression.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/Source/Core/Core/PowerPC/Expression.cpp b/Source/Core/Core/PowerPC/Expression.cpp index 79307f4460..655014f7dc 100644 --- a/Source/Core/Core/PowerPC/Expression.cpp +++ b/Source/Core/Core/PowerPC/Expression.cpp @@ -13,7 +13,6 @@ #include <expr.h> -#include "Common/BitUtils.h" #include "Common/CommonTypes.h" #include "Common/Logging/Log.h" #include "Core/Core.h" @@ -84,7 +83,7 @@ static double HostReadFunc(expr_func* f, vec_expr_t* args, void* c) const u32 address = static_cast<u32>(expr_eval(&vec_nth(args, 0))); Core::CPUThreadGuard guard(Core::System::GetInstance()); - return Common::BitCast<T>(HostRead<U>(guard, address)); + return std::bit_cast<T>(HostRead<U>(guard, address)); } template <typename T, typename U = T> @@ -96,7 +95,7 @@ static double HostWriteFunc(expr_func* f, vec_expr_t* args, void* c) const u32 address = static_cast<u32>(expr_eval(&vec_nth(args, 1))); Core::CPUThreadGuard guard(Core::System::GetInstance()); - HostWrite<U>(guard, Common::BitCast<U>(var), address); + HostWrite<U>(guard, std::bit_cast<U>(var), address); return var; } @@ -105,7 +104,7 @@ static double CastFunc(expr_func* f, vec_expr_t* args, void* c) { if (vec_len(args) != 1) return 0; - return Common::BitCast<T>(static_cast<U>(expr_eval(&vec_nth(args, 0)))); + return std::bit_cast<T>(static_cast<U>(expr_eval(&vec_nth(args, 0)))); } static double CallstackFunc(expr_func* f, vec_expr_t* args, void* c) |
