@samitouri / QOSamiQemu / commits / fc68abb2a3

fpu: Use parts64_round_to_int in parts_s390_divide_to_integer

We will not expose parts_round_to_int_normal. Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>

Richard Henderson committed Apr 25, 2026 at 23:48 UTC fc68abb2a39884b53e77ace486613af7b1f8aec1
1 file changed +5 -6
fpu/softfloat.c
+5 -6
@@ -5197,12 +5197,11 @@ static void parts_s390_divide_to_integer(FloatParts64 *a, FloatParts64 *b,
5197 * Rounding of partial quotient may be inexact. This is the whole point
5198 * of distinguishing partial quotients, so ignore the exception.
5199 */
5200 - *n = *q;
5201 - parts64_round_to_int_normal(n,
5202 - is_q_smallish
5203 - ? final_quotient_rounding_mode
5204 - : float_round_to_zero,
5205 - 0, fmt->frac_size);
5200 + *n = parts64_round_to_int(q,
5201 + is_q_smallish
5202 + ? final_quotient_rounding_mode
5203 + : float_round_to_zero,
5204 + 0, status, fmt);
5205
5206 /* Compute precise remainder */
5207 r_precise = parts64_muladd(b, n, a,