summaryrefslogtreecommitdiff
path: root/fpu
diff options
context:
space:
mode:
authorRichard Henderson <richard.henderson@linaro.org>2026-04-25 23:48:12 +1000
committerRichard Henderson <richard.henderson@linaro.org>2026-05-21 19:18:56 -0700
commitfc68abb2a39884b53e77ace486613af7b1f8aec1 (patch)
tree13125f6fed6602fdbb934d0a4edc670b68b6ee8d /fpu
parentb98004ed000424bb8ee2e27408c6cef2510e828b (diff)
downloadqemu-fc68abb2a39884b53e77ace486613af7b1f8aec1.tar.gz
qemu-fc68abb2a39884b53e77ace486613af7b1f8aec1.zip
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>
Diffstat (limited to 'fpu')
-rw-r--r--fpu/softfloat.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/fpu/softfloat.c b/fpu/softfloat.c
index 905ba6ecf8..08ea56a71d 100644
--- a/fpu/softfloat.c
+++ b/fpu/softfloat.c
@@ -5197,12 +5197,11 @@ static void parts_s390_divide_to_integer(FloatParts64 *a, FloatParts64 *b,
* Rounding of partial quotient may be inexact. This is the whole point
* of distinguishing partial quotients, so ignore the exception.
*/
- *n = *q;
- parts64_round_to_int_normal(n,
- is_q_smallish
- ? final_quotient_rounding_mode
- : float_round_to_zero,
- 0, fmt->frac_size);
+ *n = parts64_round_to_int(q,
+ is_q_smallish
+ ? final_quotient_rounding_mode
+ : float_round_to_zero,
+ 0, status, fmt);
/* Compute precise remainder */
r_precise = parts64_muladd(b, n, a,