Home | History | Annotate | Download | only in mips

Lines Matching refs:rounded

1254                                                      float rounded) {
1260 } else if (rounded > max_int32) {
1262 } else if (rounded < min_int32) {
1273 void Simulator::set_fpu_register_invalid_result(float original, float rounded) {
1279 } else if (rounded > max_int32) {
1281 } else if (rounded < min_int32) {
1293 float rounded) {
1301 } else if (rounded >= max_int64) {
1303 } else if (rounded < min_int64) {
1315 double rounded) {
1321 } else if (rounded > max_int32) {
1323 } else if (rounded < min_int32) {
1335 double rounded) {
1341 } else if (rounded > max_int32) {
1343 } else if (rounded < min_int32) {
1355 double rounded) {
1363 } else if (rounded >= max_int64) {
1365 } else if (rounded < min_int64) {
1378 bool Simulator::set_fcsr_round_error(double original, double rounded) {
1383 if (!std::isfinite(original) || !std::isfinite(rounded)) {
1388 if (original != rounded) {
1392 if (rounded < DBL_MIN && rounded > -DBL_MIN && rounded != 0) {
1397 if (rounded > max_int32 || rounded < min_int32) {
1410 bool Simulator::set_fcsr_round64_error(double original, double rounded) {
1417 if (!std::isfinite(original) || !std::isfinite(rounded)) {
1422 if (original != rounded) {
1426 if (rounded < DBL_MIN && rounded > -DBL_MIN && rounded != 0) {
1431 if (rounded >= max_int64 || rounded < min_int64) {
1444 bool Simulator::set_fcsr_round_error(float original, float rounded) {
1449 if (!std::isfinite(original) || !std::isfinite(rounded)) {
1454 if (original != rounded) {
1458 if (rounded < FLT_MIN && rounded > -FLT_MIN && rounded != 0) {
1463 if (rounded > max_int32 || rounded < min_int32) {
1476 bool Simulator::set_fcsr_round64_error(float original, float rounded) {
1483 if (!std::isfinite(original) || !std::isfinite(rounded)) {
1488 if (original != rounded) {
1492 if (rounded < FLT_MIN && rounded > -FLT_MIN && rounded != 0) {
1497 if (rounded >= max_int64 || rounded < min_int64) {
1508 void Simulator::round_according_to_fcsr(double toRound, double& rounded,
1525 rounded = std::floor(fs + 0.5);
1526 rounded_int = static_cast<int32_t>(rounded);
1534 rounded = trunc(fs);
1535 rounded_int = static_cast<int32_t>(rounded);
1538 rounded = std::ceil(fs);
1539 rounded_int = static_cast<int32_t>(rounded);
1542 rounded = std::floor(fs);
1543 rounded_int = static_cast<int32_t>(rounded);
1549 void Simulator::round_according_to_fcsr(float toRound, float& rounded,
1566 rounded = std::floor(fs + 0.5);
1567 rounded_int = static_cast<int32_t>(rounded);
1575 rounded = trunc(fs);
1576 rounded_int = static_cast<int32_t>(rounded);
1579 rounded = std::ceil(fs);
1580 rounded_int = static_cast<int32_t>(rounded);
1583 rounded = std::floor(fs);
1584 rounded_int = static_cast<int32_t>(rounded);
1590 void Simulator::round64_according_to_fcsr(double toRound, double& rounded,
1607 rounded = std::floor(fs + 0.5);
1608 rounded_int = static_cast<int64_t>(rounded);
1616 rounded = trunc(fs);
1617 rounded_int = static_cast<int64_t>(rounded);
1620 rounded = std::ceil(fs);
1621 rounded_int = static_cast<int64_t>(rounded);
1624 rounded = std::floor(fs);
1625 rounded_int = static_cast<int64_t>(rounded);
1631 void Simulator::round64_according_to_fcsr(float toRound, float& rounded,
1648 rounded = std::floor(fs + 0.5);
1649 rounded_int = static_cast<int64_t>(rounded);
1657 rounded = trunc(fs);
1658 rounded_int = static_cast<int64_t>(rounded);
1661 rounded = std::ceil(fs);
1662 rounded_int = static_cast<int64_t>(rounded);
1665 rounded = std::floor(fs);
1666 rounded_int = static_cast<int64_t>(rounded);
2738 double rounded;
2740 round_according_to_fcsr(fs, rounded, result, fs);
2742 if (set_fcsr_round_error(fs, rounded)) {
2743 set_fpu_register_word_invalid_result(fs, rounded);
2748 double rounded = std::floor(fs + 0.5);
2749 int32_t result = static_cast<int32_t>(rounded);
2756 if (set_fcsr_round_error(fs, rounded)) {
2757 set_fpu_register_word_invalid_result(fs, rounded);
2762 double rounded = trunc(fs);
2763 int32_t result = static_cast<int32_t>(rounded);
2765 if (set_fcsr_round_error(fs, rounded)) {
2766 set_fpu_register_word_invalid_result(fs, rounded);
2771 double rounded = std::floor(fs);
2772 int32_t result = static_cast<int32_t>(rounded);
2774 if (set_fcsr_round_error(fs, rounded)) {
2775 set_fpu_register_word_invalid_result(fs, rounded);
2780 double rounded = std::ceil(fs);
2781 int32_t result = static_cast<int32_t>(rounded);
2783 if (set_fcsr_round_error(fs, rounded)) {
2784 set_fpu_register_word_invalid_result(fs, rounded);
2793 double rounded;
2794 round64_according_to_fcsr(fs, rounded, result, fs);
2796 if (set_fcsr_round64_error(fs, rounded)) {
2797 set_fpu_register_invalid_result64(fs, rounded);
2807 double rounded = trunc(fs);
2808 i64 = static_cast<int64_t>(rounded);
2811 if (set_fcsr_round64_error(fs, rounded)) {
2812 set_fpu_register_invalid_result64(fs, rounded);
2821 double rounded = std::floor(fs + 0.5);
2822 int64_t result = static_cast<int64_t>(rounded);
2831 if (set_fcsr_round64_error(fs, rounded)) {
2832 set_fpu_register_invalid_result64(fs, rounded);
2841 double rounded = std::floor(fs);
2842 int64_t i64 = static_cast<int64_t>(rounded);
2845 if (set_fcsr_round64_error(fs, rounded)) {
2846 set_fpu_register_invalid_result64(fs, rounded);
2855 double rounded = std::ceil(fs);
2856 int64_t i64 = static_cast<int64_t>(rounded);
2859 if (set_fcsr_round64_error(fs, rounded)) {
2860 set_fpu_register_invalid_result64(fs, rounded);
3288 float rounded = trunc(fs);
3289 int32_t result = static_cast<int32_t>(rounded);
3291 if (set_fcsr_round_error(fs, rounded)) {
3292 set_fpu_register_word_invalid_result(fs, rounded);
3297 float rounded = trunc(fs);
3298 int64_t i64 = static_cast<int64_t>(rounded);
3301 if (set_fcsr_round64_error(fs, rounded)) {
3302 set_fpu_register_invalid_result64(fs, rounded);
3311 float rounded = std::floor(fs);
3312 int32_t result = static_cast<int32_t>(rounded);
3314 if (set_fcsr_round_error(fs, rounded)) {
3315 set_fpu_register_word_invalid_result(fs, rounded);
3320 float rounded = std::floor(fs);
3321 int64_t i64 = static_cast<int64_t>(rounded);
3324 if (set_fcsr_round64_error(fs, rounded)) {
3325 set_fpu_register_invalid_result64(fs, rounded);
3333 float rounded = std::floor(fs + 0.5);
3334 int32_t result = static_cast<int32_t>(rounded);
3341 if (set_fcsr_round_error(fs, rounded)) {
3342 set_fpu_register_word_invalid_result(fs, rounded);
3348 float rounded = std::floor(fs + 0.5);
3349 int64_t result = static_cast<int64_t>(rounded);
3358 if (set_fcsr_round64_error(fs, rounded)) {
3359 set_fpu_register_invalid_result64(fs, rounded);
3368 float rounded = std::ceil(fs);
3369 int32_t result = static_cast<int32_t>(rounded);
3371 if (set_fcsr_round_error(fs, rounded)) {
3372 set_fpu_register_word_invalid_result(fs, rounded);
3377 float rounded = std::ceil(fs);
3378 int64_t i64 = static_cast<int64_t>(rounded);
3381 if (set_fcsr_round64_error(fs, rounded)) {
3382 set_fpu_register_invalid_result64(fs, rounded);
3408 float rounded;
3409 round64_according_to_fcsr(fs, rounded, result, fs);
3411 if (set_fcsr_round64_error(fs, rounded)) {
3412 set_fpu_register_invalid_result64(fs, rounded);
3420 float rounded;
3422 round_according_to_fcsr(fs, rounded, result, fs);
3424 if (set_fcsr_round_error(fs, rounded)) {
3425 set_fpu_register_word_invalid_result(fs, rounded);