fpType dest = func(op1, op2);
__asm__ __volatile__ ("" : "=m" (dest) : "m" (dest));
- int fpClass = std::fpclassify(dest);
// Get NAN behavior right. This varies between x86 and ARM.
- if (fpClass == FP_NAN) {
+ if (std::isnan(dest)) {
const bool single = (sizeof(fpType) == sizeof(float));
const uint64_t qnan =
single ? 0x7fc00000 : ULL(0x7ff8000000000000);
fpType dest = func(op1);
__asm__ __volatile__ ("" : "=m" (dest) : "m" (dest));
- int fpClass = std::fpclassify(dest);
// Get NAN behavior right. This varies between x86 and ARM.
- if (fpClass == FP_NAN) {
+ if (std::isnan(dest)) {
const bool single = (sizeof(fpType) == sizeof(float));
const uint64_t qnan =
single ? 0x7fc00000 : ULL(0x7ff8000000000000);