diff options
author | Richard Henderson <richard.henderson@linaro.org> | 2020-05-04 21:19:39 -0700 |
---|---|---|
committer | Richard Henderson <richard.henderson@linaro.org> | 2020-05-19 08:41:16 -0700 |
commit | a828b373bdabc7e53d1e218e3fc76f85b6674688 (patch) | |
tree | 883ce3ddef0b43cdc35f8fca6d9f8be79253bcab /include/fpu/softfloat-types.h | |
parent | c120391c0090d9c40425c92cdb00f38ea8588ff6 (diff) | |
download | qemu-a828b373bdabc7e53d1e218e3fc76f85b6674688.zip qemu-a828b373bdabc7e53d1e218e3fc76f85b6674688.tar.gz qemu-a828b373bdabc7e53d1e218e3fc76f85b6674688.tar.bz2 |
softfloat: Change tininess_before_rounding to bool
Slightly tidies the usage within softfloat.c and the
representation in float_status.
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'include/fpu/softfloat-types.h')
-rw-r--r-- | include/fpu/softfloat-types.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/include/fpu/softfloat-types.h b/include/fpu/softfloat-types.h index 619b875..874ddd9 100644 --- a/include/fpu/softfloat-types.h +++ b/include/fpu/softfloat-types.h @@ -116,10 +116,8 @@ typedef struct { * Software IEC/IEEE floating-point underflow tininess-detection mode. */ -enum { - float_tininess_after_rounding = 0, - float_tininess_before_rounding = 1 -}; +#define float_tininess_after_rounding false +#define float_tininess_before_rounding true /* *Software IEC/IEEE floating-point rounding mode. @@ -158,10 +156,10 @@ enum { */ typedef struct float_status { - signed char float_detect_tininess; signed char float_rounding_mode; uint8_t float_exception_flags; signed char floatx80_rounding_precision; + bool tininess_before_rounding; /* should denormalised results go to zero and set the inexact flag? */ bool flush_to_zero; /* should denormalised inputs go to zero and set the input_denormal flag? */ |