From d8dc4f4474aa709f14a58702b7375f6e0ea82e60 Mon Sep 17 00:00:00 2001 From: jjsat Date: Tue, 4 Apr 2017 20:47:17 +0200 Subject: [PATCH] Fix isdenormal() for MS VC. --- rpcs3/Emu/Cell/SPUInterpreter.cpp | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/rpcs3/Emu/Cell/SPUInterpreter.cpp b/rpcs3/Emu/Cell/SPUInterpreter.cpp index 0295e2e87d..38aa2571ce 100644 --- a/rpcs3/Emu/Cell/SPUInterpreter.cpp +++ b/rpcs3/Emu/Cell/SPUInterpreter.cpp @@ -1372,22 +1372,12 @@ inline float ldexpf_extended(float x, int exp) // ldexpf() for extended values, inline bool isdenormal(float x) { - const int fpc = std::fpclassify(x); -#ifdef __GNUG__ - return fpc == FP_SUBNORMAL; -#else - return (fpc & (_FPCLASS_PD | _FPCLASS_ND)) != 0; -#endif + return std::fpclassify(x) == FP_SUBNORMAL; } inline bool isdenormal(double x) { - const int fpc = std::fpclassify(x); -#ifdef __GNUG__ - return fpc == FP_SUBNORMAL; -#else - return (fpc & (_FPCLASS_PD | _FPCLASS_ND)) != 0; -#endif + return std::fpclassify(x) == FP_SUBNORMAL; } void spu_interpreter_precise::FREST(SPUThread& spu, spu_opcode_t op)