Home | History | Annotate | Download | only in mips64

Lines Matching defs:rounded

1193 bool Simulator::set_fcsr_round_error(double original, double rounded) {
1198 if (!std::isfinite(original) || !std::isfinite(rounded)) {
1203 if (original != rounded) {
1207 if (rounded < DBL_MIN && rounded > -DBL_MIN && rounded != 0) {
1212 if (rounded > max_int32 || rounded < min_int32) {
1225 bool Simulator::set_fcsr_round64_error(double original, double rounded) {
1230 if (!std::isfinite(original) || !std::isfinite(rounded)) {
1235 if (original != rounded) {
1239 if (rounded < DBL_MIN && rounded > -DBL_MIN && rounded != 0) {
1244 if (rounded > max_int64 || rounded < min_int64) {
2418 double rounded = std::floor(fs + 0.5);
2419 int32_t result = static_cast<int32_t>(rounded);
2426 if (set_fcsr_round_error(fs, rounded)) {
2433 double rounded = trunc(fs);
2434 int32_t result = static_cast<int32_t>(rounded);
2436 if (set_fcsr_round_error(fs, rounded)) {
2443 double rounded = std::floor(fs);
2444 int32_t result = static_cast<int32_t>(rounded);
2446 if (set_fcsr_round_error(fs, rounded)) {
2453 double rounded = std::ceil(fs);
2454 int32_t result = static_cast<int32_t>(rounded);
2456 if (set_fcsr_round_error(fs, rounded)) {
2471 double rounded = fs > 0 ? floor(fs + 0.5) : ceil(fs - 0.5);
2472 int64_t result = static_cast<int64_t>(rounded);
2474 if (set_fcsr_round64_error(fs, rounded)) {
2480 double rounded = trunc(fs);
2481 int64_t result = static_cast<int64_t>(rounded);
2483 if (set_fcsr_round64_error(fs, rounded)) {
2489 double rounded = floor(fs);
2490 int64_t result = static_cast<int64_t>(rounded);
2492 if (set_fcsr_round64_error(fs, rounded)) {
2498 double rounded = ceil(fs);
2499 int64_t result = static_cast<int64_t>(rounded);
2501 if (set_fcsr_round64_error(fs, rounded)) {