mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-02 06:08:50 +00:00
Replace Common::BitCast with std::bit_cast
This commit is contained in:
parent
57c890d4fc
commit
fbbfea8e8e
36 changed files with 177 additions and 215 deletions
|
@ -113,7 +113,7 @@ public:
|
|||
// Some games (e.g. Donkey Kong Country Returns) have a few draws that contain NaN.
|
||||
// Since NaN != NaN, we need to compare the bits instead.
|
||||
const auto bit_equal = [](float val_a, float val_b) {
|
||||
return Common::BitCast<u32>(val_a) == Common::BitCast<u32>(val_b);
|
||||
return std::bit_cast<u32>(val_a) == std::bit_cast<u32>(val_b);
|
||||
};
|
||||
|
||||
// The last element is allowed to be garbage for SIMD overwrites.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue