mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-01 23:03:54 -06:00
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>
This commit is contained in:
parent
c120391c00
commit
a828b373bd
4 changed files with 28 additions and 44 deletions
|
@ -53,9 +53,9 @@ this code that are retained.
|
|||
|
||||
#include "fpu/softfloat-types.h"
|
||||
|
||||
static inline void set_float_detect_tininess(int val, float_status *status)
|
||||
static inline void set_float_detect_tininess(bool val, float_status *status)
|
||||
{
|
||||
status->float_detect_tininess = val;
|
||||
status->tininess_before_rounding = val;
|
||||
}
|
||||
|
||||
static inline void set_float_rounding_mode(int val, float_status *status)
|
||||
|
@ -94,9 +94,9 @@ static inline void set_snan_bit_is_one(bool val, float_status *status)
|
|||
status->snan_bit_is_one = val;
|
||||
}
|
||||
|
||||
static inline int get_float_detect_tininess(float_status *status)
|
||||
static inline bool get_float_detect_tininess(float_status *status)
|
||||
{
|
||||
return status->float_detect_tininess;
|
||||
return status->tininess_before_rounding;
|
||||
}
|
||||
|
||||
static inline int get_float_rounding_mode(float_status *status)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue