mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-24 15:01:16 +01:00
Interpreter_FPUtils: Get rid of a pointer cast
This is undefined behavior according to the standard. We can just use the built in means of retrieving a quiet NaN.
This commit is contained in:
parent
5369d3c9f1
commit
27611d55ff
@ -13,8 +13,7 @@
|
||||
#include "Core/PowerPC/Gekko.h"
|
||||
#include "Core/PowerPC/PowerPC.h"
|
||||
|
||||
const u64 PPC_NAN_U64 = 0x7ff8000000000000ull;
|
||||
const double PPC_NAN = *(double* const) & PPC_NAN_U64;
|
||||
constexpr double PPC_NAN = std::numeric_limits<double>::quiet_NaN();
|
||||
|
||||
// the 4 less-significand bits in FPSCR[FPRF]
|
||||
enum FPCC
|
||||
|
Loading…
x
Reference in New Issue
Block a user