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…
Reference in New Issue