float fs3 = reinterpret_cast<float&>(temp = Fs3_bits);
float fd;
- if (isnan(fs1) || isnan(fs2) || isnan(fs3)) {
+ if (std::isnan(fs1) || std::isnan(fs2) ||
+ std::isnan(fs3)) {
if (issignalingnan(fs1) || issignalingnan(fs2)
|| issignalingnan(fs3)) {
FFLAGS |= FloatInvalid;
}
fd = numeric_limits<float>::quiet_NaN();
- } else if (isinf(fs1) || isinf(fs2) ||
- isinf(fs3)) {
+ } else if (std::isinf(fs1) || std::isinf(fs2) ||
+ std::isinf(fs3)) {
if (signbit(fs1) == signbit(fs2)
- && !isinf(fs3)) {
+ && !std::isinf(fs3)) {
fd = numeric_limits<float>::infinity();
} else if (signbit(fs1) != signbit(fs2)
- && !isinf(fs3)) {
+ && !std::isinf(fs3)) {
fd = -numeric_limits<float>::infinity();
} else { // Fs3_sf is infinity
fd = fs3;
Fd_bits = (uint64_t)reinterpret_cast<uint32_t&>(fd);
}}, FloatMultOp);
0x1: fmadd_d({{
- if (isnan(Fs1) || isnan(Fs2) || isnan(Fs3)) {
+ if (std::isnan(Fs1) || std::isnan(Fs2) ||
+ std::isnan(Fs3)) {
if (issignalingnan(Fs1) || issignalingnan(Fs2)
|| issignalingnan(Fs3)) {
FFLAGS |= FloatInvalid;
}
Fd = numeric_limits<double>::quiet_NaN();
- } else if (isinf(Fs1) || isinf(Fs2) ||
- isinf(Fs3)) {
+ } else if (std::isinf(Fs1) || std::isinf(Fs2) ||
+ std::isinf(Fs3)) {
if (signbit(Fs1) == signbit(Fs2)
- && !isinf(Fs3)) {
+ && !std::isinf(Fs3)) {
Fd = numeric_limits<double>::infinity();
} else if (signbit(Fs1) != signbit(Fs2)
- && !isinf(Fs3)) {
+ && !std::isinf(Fs3)) {
Fd = -numeric_limits<double>::infinity();
} else {
Fd = Fs3;
float fs3 = reinterpret_cast<float&>(temp = Fs3_bits);
float fd;
- if (isnan(fs1) || isnan(fs2) || isnan(fs3)) {
+ if (std::isnan(fs1) || std::isnan(fs2) ||
+ std::isnan(fs3)) {
if (issignalingnan(fs1) || issignalingnan(fs2)
|| issignalingnan(fs3)) {
FFLAGS |= FloatInvalid;
}
fd = numeric_limits<float>::quiet_NaN();
- } else if (isinf(fs1) || isinf(fs2) ||
- isinf(fs3)) {
+ } else if (std::isinf(fs1) || std::isinf(fs2) ||
+ std::isinf(fs3)) {
if (signbit(fs1) == signbit(fs2)
- && !isinf(fs3)) {
+ && !std::isinf(fs3)) {
fd = numeric_limits<float>::infinity();
} else if (signbit(fs1) != signbit(fs2)
- && !isinf(fs3)) {
+ && !std::isinf(fs3)) {
fd = -numeric_limits<float>::infinity();
} else { // Fs3_sf is infinity
fd = -fs3;
Fd_bits = (uint64_t)reinterpret_cast<uint32_t&>(fd);
}}, FloatMultOp);
0x1: fmsub_d({{
- if (isnan(Fs1) || isnan(Fs2) || isnan(Fs3)) {
+ if (std::isnan(Fs1) || std::isnan(Fs2) ||
+ std::isnan(Fs3)) {
if (issignalingnan(Fs1) || issignalingnan(Fs2)
|| issignalingnan(Fs3)) {
FFLAGS |= FloatInvalid;
}
Fd = numeric_limits<double>::quiet_NaN();
- } else if (isinf(Fs1) || isinf(Fs2) ||
- isinf(Fs3)) {
+ } else if (std::isinf(Fs1) || std::isinf(Fs2) ||
+ std::isinf(Fs3)) {
if (signbit(Fs1) == signbit(Fs2)
- && !isinf(Fs3)) {
+ && !std::isinf(Fs3)) {
Fd = numeric_limits<double>::infinity();
} else if (signbit(Fs1) != signbit(Fs2)
- && !isinf(Fs3)) {
+ && !std::isinf(Fs3)) {
Fd = -numeric_limits<double>::infinity();
} else {
Fd = -Fs3;
float fs3 = reinterpret_cast<float&>(temp = Fs3_bits);
float fd;
- if (isnan(fs1) || isnan(fs2) || isnan(fs3)) {
+ if (std::isnan(fs1) || std::isnan(fs2) ||
+ std::isnan(fs3)) {
if (issignalingnan(fs1) || issignalingnan(fs2)
|| issignalingnan(fs3)) {
FFLAGS |= FloatInvalid;
}
fd = numeric_limits<float>::quiet_NaN();
- } else if (isinf(fs1) || isinf(fs2) ||
- isinf(fs3)) {
+ } else if (std::isinf(fs1) || std::isinf(fs2) ||
+ std::isinf(fs3)) {
if (signbit(fs1) == signbit(fs2)
- && !isinf(fs3)) {
+ && !std::isinf(fs3)) {
fd = -numeric_limits<float>::infinity();
} else if (signbit(fs1) != signbit(fs2)
- && !isinf(fs3)) {
+ && !std::isinf(fs3)) {
fd = numeric_limits<float>::infinity();
} else { // Fs3_sf is infinity
fd = fs3;
Fd_bits = (uint64_t)reinterpret_cast<uint32_t&>(fd);
}}, FloatMultOp);
0x1: fnmsub_d({{
- if (isnan(Fs1) || isnan(Fs2) || isnan(Fs3)) {
+ if (std::isnan(Fs1) || std::isnan(Fs2) ||
+ std::isnan(Fs3)) {
if (issignalingnan(Fs1) || issignalingnan(Fs2)
|| issignalingnan(Fs3)) {
FFLAGS |= FloatInvalid;
}
Fd = numeric_limits<double>::quiet_NaN();
- } else if (isinf(Fs1) || isinf(Fs2)
- || isinf(Fs3)) {
+ } else if (std::isinf(Fs1) || std::isinf(Fs2)
+ || std::isinf(Fs3)) {
if (signbit(Fs1) == signbit(Fs2)
- && !isinf(Fs3)) {
+ && !std::isinf(Fs3)) {
Fd = -numeric_limits<double>::infinity();
} else if (signbit(Fs1) != signbit(Fs2)
- && !isinf(Fs3)) {
+ && !std::isinf(Fs3)) {
Fd = numeric_limits<double>::infinity();
} else {
Fd = Fs3;
float fs3 = reinterpret_cast<float&>(temp = Fs3_bits);
float fd;
- if (isnan(fs1) || isnan(fs2) || isnan(fs3)) {
+ if (std::isnan(fs1) || std::isnan(fs2) ||
+ std::isnan(fs3)) {
if (issignalingnan(fs1) || issignalingnan(fs2)
|| issignalingnan(fs3)) {
FFLAGS |= FloatInvalid;
}
fd = numeric_limits<float>::quiet_NaN();
- } else if (isinf(fs1) || isinf(fs2) ||
- isinf(fs3)) {
+ } else if (std::isinf(fs1) || std::isinf(fs2) ||
+ std::isinf(fs3)) {
if (signbit(fs1) == signbit(fs2)
- && !isinf(fs3)) {
+ && !std::isinf(fs3)) {
fd = -numeric_limits<float>::infinity();
} else if (signbit(fs1) != signbit(fs2)
- && !isinf(fs3)) {
+ && !std::isinf(fs3)) {
fd = numeric_limits<float>::infinity();
} else { // Fs3_sf is infinity
fd = -fs3;
Fd_bits = (uint64_t)reinterpret_cast<uint32_t&>(fd);
}}, FloatMultOp);
0x1: fnmadd_d({{
- if (isnan(Fs1) || isnan(Fs2) || isnan(Fs3)) {
+ if (std::isnan(Fs1) || std::isnan(Fs2) ||
+ std::isnan(Fs3)) {
if (issignalingnan(Fs1) || issignalingnan(Fs2)
|| issignalingnan(Fs3)) {
FFLAGS |= FloatInvalid;
}
Fd = numeric_limits<double>::quiet_NaN();
- } else if (isinf(Fs1) || isinf(Fs2) ||
- isinf(Fs3)) {
+ } else if (std::isinf(Fs1) || std::isinf(Fs2) ||
+ std::isinf(Fs3)) {
if (signbit(Fs1) == signbit(Fs2)
- && !isinf(Fs3)) {
+ && !std::isinf(Fs3)) {
Fd = -numeric_limits<double>::infinity();
} else if (signbit(Fs1) != signbit(Fs2)
- && !isinf(Fs3)) {
+ && !std::isinf(Fs3)) {
Fd = numeric_limits<double>::infinity();
} else {
Fd = -Fs3;
float fs2 = reinterpret_cast<float&>(temp = Fs2_bits);
float fd;
- if (isnan(fs1) || isnan(fs2)) {
+ if (std::isnan(fs1) || std::isnan(fs2)) {
if (issignalingnan(fs1) || issignalingnan(fs2)) {
FFLAGS |= FloatInvalid;
}
Fd_bits = (uint64_t)reinterpret_cast<uint32_t&>(fd);
}}, FloatAddOp);
0x1: fadd_d({{
- if (isnan(Fs1) || isnan(Fs2)) {
+ if (std::isnan(Fs1) || std::isnan(Fs2)) {
if (issignalingnan(Fs1) || issignalingnan(Fs2)) {
FFLAGS |= FloatInvalid;
}
float fs2 = reinterpret_cast<float&>(temp = Fs2_bits);
float fd;
- if (isnan(fs1) || isnan(fs2)) {
+ if (std::isnan(fs1) || std::isnan(fs2)) {
if (issignalingnan(fs1) || issignalingnan(fs2)) {
FFLAGS |= FloatInvalid;
}
Fd_bits = (uint64_t)reinterpret_cast<uint32_t&>(fd);
}}, FloatAddOp);
0x5: fsub_d({{
- if (isnan(Fs1) || isnan(Fs2)) {
+ if (std::isnan(Fs1) || std::isnan(Fs2)) {
if (issignalingnan(Fs1) || issignalingnan(Fs2)) {
FFLAGS |= FloatInvalid;
}
float fs2 = reinterpret_cast<float&>(temp = Fs2_bits);
float fd;
- if (isnan(fs1) || isnan(fs2)) {
+ if (std::isnan(fs1) || std::isnan(fs2)) {
if (issignalingnan(fs1) || issignalingnan(fs2)) {
FFLAGS |= FloatInvalid;
}
Fd_bits = (uint64_t)reinterpret_cast<uint32_t&>(fd);
}}, FloatMultOp);
0x9: fmul_d({{
- if (isnan(Fs1) || isnan(Fs2)) {
+ if (std::isnan(Fs1) || std::isnan(Fs2)) {
if (issignalingnan(Fs1) || issignalingnan(Fs2)) {
FFLAGS |= FloatInvalid;
}
float fs2 = reinterpret_cast<float&>(temp = Fs2_bits);
float fd;
- if (isnan(fs1) || isnan(fs2)) {
+ if (std::isnan(fs1) || std::isnan(fs2)) {
if (issignalingnan(fs1) || issignalingnan(fs2)) {
FFLAGS |= FloatInvalid;
}
Fd_bits = (uint64_t)reinterpret_cast<uint32_t&>(fd);
}}, FloatDivOp);
0xd: fdiv_d({{
- if (isnan(Fs1) || isnan(Fs2)) {
+ if (std::isnan(Fs1) || std::isnan(Fs2)) {
if (issignalingnan(Fs1) || issignalingnan(Fs2)) {
FFLAGS |= FloatInvalid;
}
float fs1 = reinterpret_cast<float&>(temp = Fs1_bits);
float fs2 = reinterpret_cast<float&>(temp = Fs2_bits);
- if (isnan(fs1) || isnan(fs2)) {
+ if (std::isnan(fs1) || std::isnan(fs2)) {
FFLAGS |= FloatInvalid;
Rd = 0;
} else {
float fs1 = reinterpret_cast<float&>(temp = Fs1_bits);
float fs2 = reinterpret_cast<float&>(temp = Fs2_bits);
- if (isnan(fs1) || isnan(fs2)) {
+ if (std::isnan(fs1) || std::isnan(fs2)) {
FFLAGS |= FloatInvalid;
Rd = 0;
} else {
}
0x51: decode ROUND_MODE {
0x0: fle_d({{
- if (isnan(Fs1) || isnan(Fs2)) {
+ if (std::isnan(Fs1) || std::isnan(Fs2)) {
FFLAGS |= FloatInvalid;
Rd = 0;
} else {
}
}}, FloatCmpOp);
0x1: flt_d({{
- if (isnan(Fs1) || isnan(Fs2)) {
+ if (std::isnan(Fs1) || std::isnan(Fs2)) {
FFLAGS |= FloatInvalid;
Rd = 0;
} else {
uint32_t temp;
float fs1 = reinterpret_cast<float&>(temp = Fs1_bits);
- if (isnan(fs1)) {
+ if (std::isnan(fs1)) {
Rd_sd = numeric_limits<int32_t>::max();
FFLAGS |= FloatInvalid;
} else {
uint32_t temp;
float fs1 = reinterpret_cast<float&>(temp = Fs1_bits);
- if (isnan(fs1)) {
+ if (std::isnan(fs1)) {
Rd_sd = numeric_limits<int64_t>::max();
FFLAGS |= FloatInvalid;
} else {
}
}
}
-}
\ No newline at end of file
+}