From fbbfea8e8e536800a6a911eb90cecdd1f343f9e3 Mon Sep 17 00:00:00 2001 From: Pokechu22 Date: Fri, 5 Aug 2022 21:10:17 -0700 Subject: Replace Common::BitCast with std::bit_cast --- Source/Core/VideoCommon/BPMemory.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Source/Core/VideoCommon/BPMemory.cpp') diff --git a/Source/Core/VideoCommon/BPMemory.cpp b/Source/Core/VideoCommon/BPMemory.cpp index 67952dc1ed..acf26e80c4 100644 --- a/Source/Core/VideoCommon/BPMemory.cpp +++ b/Source/Core/VideoCommon/BPMemory.cpp @@ -3,7 +3,7 @@ #include "VideoCommon/BPMemory.h" -#include "Common/BitUtils.h" +#include // BP state // STATE_TO_SAVE @@ -50,14 +50,14 @@ float FogParam0::FloatValue() const { // scale mantissa from 11 to 23 bits const u32 integral = (sign << 31) | (exp << 23) | (mant << 12); - return Common::BitCast(integral); + return std::bit_cast(integral); } float FogParam3::FloatValue() const { // scale mantissa from 11 to 23 bits const u32 integral = (c_sign << 31) | (c_exp << 23) | (c_mant << 12); - return Common::BitCast(integral); + return std::bit_cast(integral); } float FogParams::GetA() const -- cgit v1.2.3