[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 25/72] softfloat: Rearrange FloatParts64
From: |
Alex Bennée |
Subject: |
Re: [PATCH 25/72] softfloat: Rearrange FloatParts64 |
Date: |
Tue, 11 May 2021 14:57:55 +0100 |
User-agent: |
mu4e 1.5.13; emacs 28.0.50 |
Richard Henderson <richard.henderson@linaro.org> writes:
> Shuffle the fraction to the end, otherwise sort by size.
> Add frac_hi and frac_lo members to alias frac.
>
> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
> ---
> fpu/softfloat.c | 13 +++++++++++--
> 1 file changed, 11 insertions(+), 2 deletions(-)
>
> diff --git a/fpu/softfloat.c b/fpu/softfloat.c
> index 2123453d40..2d6f61ee7a 100644
> --- a/fpu/softfloat.c
> +++ b/fpu/softfloat.c
> @@ -511,10 +511,19 @@ static inline __attribute__((unused)) bool
> is_qnan(FloatClass c)
> */
>
> typedef struct {
> - uint64_t frac;
> - int32_t exp;
> FloatClass cls;
> bool sign;
> + int32_t exp;
> + union {
> + /* Routines that know the structure may reference the singular name.
> */
> + uint64_t frac;
> + /*
> + * Routines expanded with multiple structures reference "hi" and
> "lo".
> + * In this structure, the one word is both highest and lowest.
> + */
> + uint64_t frac_hi;
> + uint64_t frac_lo;
This confuses me. Is this because it could be frac_hi or frac_lo at the
"top" of the structure because of endian issues?
> + };
> } FloatParts64;
>
> #define DECOMPOSED_BINARY_POINT 63
--
Alex Bennée
- Re: [PATCH 20/72] softfloat: Use pointers with pack_raw, (continued)
- [PATCH 26/72] softfloat: Convert float128_silence_nan to parts, Richard Henderson, 2021/05/07
- [PATCH 22/72] softfloat: Use pointers with ftype_unpack_canonical, Richard Henderson, 2021/05/07
- [PATCH 23/72] softfloat: Use pointers with ftype_round_pack_canonical, Richard Henderson, 2021/05/07
- [PATCH 30/72] softfloat: Move pick_nan_muladd to softfloat-parts.c.inc, Richard Henderson, 2021/05/07
- [PATCH 25/72] softfloat: Rearrange FloatParts64, Richard Henderson, 2021/05/07
- Re: [PATCH 25/72] softfloat: Rearrange FloatParts64,
Alex Bennée <=
- [PATCH 31/72] softfloat: Move sf_canonicalize to softfloat-parts.c.inc, Richard Henderson, 2021/05/07
- [PATCH 18/72] softfloat: Use pointers with unpack_raw, Richard Henderson, 2021/05/07
- [PATCH 24/72] softfloat: Use pointers with parts_silence_nan, Richard Henderson, 2021/05/07
- [PATCH 27/72] softfloat: Convert float128_default_nan to parts, Richard Henderson, 2021/05/07