mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-03-29 22:20:48 +00:00
Fix isdenormal() for MS VC.
This commit is contained in:
parent
ba8aa580a1
commit
d8dc4f4474
@ -1372,22 +1372,12 @@ inline float ldexpf_extended(float x, int exp) // ldexpf() for extended values,
|
|||||||
|
|
||||||
inline bool isdenormal(float x)
|
inline bool isdenormal(float x)
|
||||||
{
|
{
|
||||||
const int fpc = std::fpclassify(x);
|
return std::fpclassify(x) == FP_SUBNORMAL;
|
||||||
#ifdef __GNUG__
|
|
||||||
return fpc == FP_SUBNORMAL;
|
|
||||||
#else
|
|
||||||
return (fpc & (_FPCLASS_PD | _FPCLASS_ND)) != 0;
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
inline bool isdenormal(double x)
|
inline bool isdenormal(double x)
|
||||||
{
|
{
|
||||||
const int fpc = std::fpclassify(x);
|
return std::fpclassify(x) == FP_SUBNORMAL;
|
||||||
#ifdef __GNUG__
|
|
||||||
return fpc == FP_SUBNORMAL;
|
|
||||||
#else
|
|
||||||
return (fpc & (_FPCLASS_PD | _FPCLASS_ND)) != 0;
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void spu_interpreter_precise::FREST(SPUThread& spu, spu_opcode_t op)
|
void spu_interpreter_precise::FREST(SPUThread& spu, spu_opcode_t op)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user