diff options
author | Richard Henderson | 2020-05-05 19:22:05 +0200 |
---|---|---|
committer | Richard Henderson | 2020-05-19 17:41:45 +0200 |
commit | 71bfd65c5fcd72f8af2735905415c7ce4220f6dc (patch) | |
tree | 7d8723d20c9725f97a1f3c0f03520ea46a9ea8d0 /target/unicore32/ucf64_helper.c | |
parent | softfloat: Name rounding mode enum (diff) | |
download | qemu-71bfd65c5fcd72f8af2735905415c7ce4220f6dc.tar.gz qemu-71bfd65c5fcd72f8af2735905415c7ce4220f6dc.tar.xz qemu-71bfd65c5fcd72f8af2735905415c7ce4220f6dc.zip |
softfloat: Name compare relation enum
Give the previously unnamed enum a typedef name. Use it in the
prototypes of compare functions. Use it to hold the results
of the compare functions.
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'target/unicore32/ucf64_helper.c')
-rw-r--r-- | target/unicore32/ucf64_helper.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/target/unicore32/ucf64_helper.c b/target/unicore32/ucf64_helper.c index e078e84437..12a91900f6 100644 --- a/target/unicore32/ucf64_helper.c +++ b/target/unicore32/ucf64_helper.c @@ -174,8 +174,7 @@ float64 HELPER(ucf64_absd)(float64 a) void HELPER(ucf64_cmps)(float32 a, float32 b, uint32_t c, CPUUniCore32State *env) { - int flag; - flag = float32_compare_quiet(a, b, &env->ucf64.fp_status); + FloatRelation flag = float32_compare_quiet(a, b, &env->ucf64.fp_status); env->CF = 0; switch (c & 0x7) { case 0: /* F */ @@ -223,8 +222,7 @@ void HELPER(ucf64_cmps)(float32 a, float32 b, uint32_t c, void HELPER(ucf64_cmpd)(float64 a, float64 b, uint32_t c, CPUUniCore32State *env) { - int flag; - flag = float64_compare_quiet(a, b, &env->ucf64.fp_status); + FloatRelation flag = float64_compare_quiet(a, b, &env->ucf64.fp_status); env->CF = 0; switch (c & 0x7) { case 0: /* F */ |