mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
Replace Common::BitCast with std::bit_cast
This commit is contained in:
@ -3,6 +3,7 @@
|
||||
|
||||
#include "Common/Assembler/GekkoIRGen.h"
|
||||
|
||||
#include <bit>
|
||||
#include <functional>
|
||||
#include <map>
|
||||
#include <numeric>
|
||||
@ -436,13 +437,13 @@ void GekkoIRPlugin::AddBytes(T val)
|
||||
else if constexpr (std::is_same_v<T, float>)
|
||||
{
|
||||
static_assert(sizeof(double) == sizeof(u64));
|
||||
AddBytes(BitCast<u32>(val));
|
||||
AddBytes(std::bit_cast<u32>(val));
|
||||
}
|
||||
else
|
||||
{
|
||||
// std::is_same_v<T, double>
|
||||
static_assert(sizeof(double) == sizeof(u64));
|
||||
AddBytes(BitCast<u64>(val));
|
||||
AddBytes(std::bit_cast<u64>(val));
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user