summaryrefslogtreecommitdiff
path: root/target/arm/vfp_helper.c
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2020-08-28 19:33:10 +0100
committerPeter Maydell <peter.maydell@linaro.org>2020-09-01 11:19:32 +0100
commitb684e49a17da39539b0ac6e4c4c98b28b38feb76 (patch)
tree8b07f5808911ad675ad1252d9ad49ccea9ac78d6 /target/arm/vfp_helper.c
parent2f4c51c0f384d7888a04b4815861e6d5fd244d75 (diff)
downloadqemu-b684e49a17da39539b0ac6e4c4c98b28b38feb76.zip
target/arm: Remove local definitions of float constants
In several places the target/arm code defines local float constants for 2, 3 and 1.5, which are also provided by include/fpu/softfloat.h. Remove the unnecessary local duplicate versions. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-id: 20200828183354.27913-2-peter.maydell@linaro.org
Diffstat (limited to 'target/arm/vfp_helper.c')
-rw-r--r--target/arm/vfp_helper.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/target/arm/vfp_helper.c b/target/arm/vfp_helper.c
index 64266ece62..02ab8d7f2d 100644
--- a/target/arm/vfp_helper.c
+++ b/target/arm/vfp_helper.c
@@ -582,10 +582,6 @@ uint32_t HELPER(vfp_fcvt_f64_to_f16)(float64 a, void *fpstp, uint32_t ahp_mode)
return r;
}
-#define float32_two make_float32(0x40000000)
-#define float32_three make_float32(0x40400000)
-#define float32_one_point_five make_float32(0x3fc00000)
-
float32 HELPER(recps_f32)(CPUARMState *env, float32 a, float32 b)
{
float_status *s = &env->vfp.standard_fp_status;