summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/BPMemory.cpp
diff options
context:
space:
mode:
authorTilka <tilkax@gmail.com>2024-05-04 08:24:59 +0100
committerGitHub <noreply@github.com>2024-05-04 08:24:59 +0100
commitc442c0d5e5dc993562b43871a7548d64bc82a1ad (patch)
treef8d0e97e62b7212788ef1d121598e160fb163662 /Source/Core/VideoCommon/BPMemory.cpp
parentc23562b7b5f43d27dab62ce6e3a25a2c3c35aed4 (diff)
parentfbbfea8e8e536800a6a911eb90cecdd1f343f9e3 (diff)
Merge pull request #10957 from Pokechu22/std-bitcast
Replace Common::BitCast with std::bit_cast
Diffstat (limited to 'Source/Core/VideoCommon/BPMemory.cpp')
-rw-r--r--Source/Core/VideoCommon/BPMemory.cpp6
1 files changed, 3 insertions, 3 deletions
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 <bit>
// 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<float>(integral);
+ return std::bit_cast<float>(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<float>(integral);
+ return std::bit_cast<float>(integral);
}
float FogParams::GetA() const