Home | History | Annotate | Download | only in mips

Lines Matching refs:rounded

1172 bool Simulator::set_fcsr_round_error(double original, double rounded) {
1175 if (!isfinite(original) || !isfinite(rounded)) {
1180 if (original != rounded) {
1184 if (rounded < DBL_MIN && rounded > -DBL_MIN && rounded != 0) {
1189 if (rounded > INT_MAX || rounded < INT_MIN) {
2068 double rounded = fs > 0 ? floor(fs + 0.5) : ceil(fs - 0.5);
2069 int32_t result = static_cast<int32_t>(rounded);
2071 if (set_fcsr_round_error(fs, rounded)) {
2078 double rounded = trunc(fs);
2079 int32_t result = static_cast<int32_t>(rounded);
2081 if (set_fcsr_round_error(fs, rounded)) {
2088 double rounded = floor(fs);
2089 int32_t result = static_cast<int32_t>(rounded);
2091 if (set_fcsr_round_error(fs, rounded)) {
2098 double rounded = ceil(fs);
2099 int32_t result = static_cast<int32_t>(rounded);
2101 if (set_fcsr_round_error(fs, rounded)) {
2110 double rounded = trunc(fs);
2111 i64 = static_cast<int64_t>(rounded);
2117 double rounded = trunc(fs);
2118 i64 = static_cast<int64_t>(rounded);
2124 double rounded = fs > 0 ? floor(fs + 0.5) : ceil(fs - 0.5);
2125 i64 = static_cast<int64_t>(rounded);