]> Git Repo - qemu.git/commitdiff
softfloat: remove float64_trunc_to_int
authorEmilio G. Cota <[email protected]>
Wed, 12 Sep 2018 21:35:33 +0000 (17:35 -0400)
committerRichard Henderson <[email protected]>
Fri, 5 Oct 2018 17:57:41 +0000 (12:57 -0500)
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 <[email protected]>
Signed-off-by: Emilio G. Cota <[email protected]>
Signed-off-by: Richard Henderson <[email protected]>
fpu/softfloat.c
include/fpu/softfloat.h

index 59ca356d0e7ad07163de5c473500335e1fc2c2c7..9405f12a034ee2f939c07b644918dcfe9677fb6d 100644 (file)
@@ -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
index cc1b58b0299e499879add4795785534e9ada2efd..8fd9f9bbae22c5695b37943826210b4206923f18 100644 (file)
@@ -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);
This page took 0.03641 seconds and 4 git commands to generate.