[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 1/8] softfloat: remove float64_trunc_to_int
From: |
Richard Henderson |
Subject: |
[Qemu-devel] [PULL 1/8] softfloat: remove float64_trunc_to_int |
Date: |
Fri, 5 Oct 2018 13:01:54 -0500 |
From: "Emilio G. Cota" <address@hidden>
It has not had users since f83311e476 ("target-m68k: use floatx80
internally", 2017-06-21).
Note that no other bit-width has floatX_trunc_to_int.
Reviewed-by: Alex Bennée <address@hidden>
Signed-off-by: Emilio G. Cota <address@hidden>
Signed-off-by: Richard Henderson <address@hidden>
---
include/fpu/softfloat.h | 1 -
fpu/softfloat.c | 7 -------
2 files changed, 8 deletions(-)
diff --git a/include/fpu/softfloat.h b/include/fpu/softfloat.h
index cc1b58b029..8fd9f9bbae 100644
--- a/include/fpu/softfloat.h
+++ b/include/fpu/softfloat.h
@@ -535,7 +535,6 @@ float128 float64_to_float128(float64, float_status *status);
| Software IEC/IEEE double-precision operations.
*----------------------------------------------------------------------------*/
float64 float64_round_to_int(float64, float_status *status);
-float64 float64_trunc_to_int(float64, float_status *status);
float64 float64_add(float64, float64, float_status *status);
float64 float64_sub(float64, float64, float_status *status);
float64 float64_mul(float64, float64, float_status *status);
diff --git a/fpu/softfloat.c b/fpu/softfloat.c
index 59ca356d0e..9405f12a03 100644
--- a/fpu/softfloat.c
+++ b/fpu/softfloat.c
@@ -1409,13 +1409,6 @@ float64 float64_round_to_int(float64 a, float_status *s)
return float64_round_pack_canonical(pr, s);
}
-float64 float64_trunc_to_int(float64 a, float_status *s)
-{
- FloatParts pa = float64_unpack_canonical(a, s);
- FloatParts pr = round_to_int(pa, float_round_to_zero, 0, s);
- return float64_round_pack_canonical(pr, s);
-}
-
/*
* Returns the result of converting the floating-point value `a' to
* the two's complement integer format. The conversion is performed
--
2.17.1
- [Qemu-devel] [PULL 0/8] softfloat queue, Richard Henderson, 2018/10/05
- [Qemu-devel] [PULL 1/8] softfloat: remove float64_trunc_to_int,
Richard Henderson <=
- [Qemu-devel] [PULL 2/8] gitmodules: add berkeley's softfloat + testfloat version 3, Richard Henderson, 2018/10/05
- [Qemu-devel] [PULL 4/8] softfloat: Replace countLeadingZeros32/64 with clz32/64, Richard Henderson, 2018/10/05
- [Qemu-devel] [PULL 6/8] softfloat: Specialize udiv_qrnnd for x86_64, Richard Henderson, 2018/10/05
- [Qemu-devel] [PULL 8/8] softfloat: Specialize udiv_qrnnd for ppc64, Richard Henderson, 2018/10/05
- [Qemu-devel] [PULL 7/8] softfloat: Specialize udiv_qrnnd for s390x, Richard Henderson, 2018/10/05
- [Qemu-devel] [PULL 5/8] softfloat: Fix division, Richard Henderson, 2018/10/05
- [Qemu-devel] [PULL 3/8] tests/fp/fp-test: add floating point tests, Richard Henderson, 2018/10/05
- Re: [Qemu-devel] [PULL 0/8] softfloat queue, Peter Maydell, 2018/10/08