[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v1 1/7] fpu: move LIT64 helper to softfloat-type
From: |
Richard Henderson |
Subject: |
Re: [Qemu-devel] [PATCH v1 1/7] fpu: move LIT64 helper to softfloat-types |
Date: |
Thu, 8 Aug 2019 10:28:57 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 |
On 8/8/19 9:41 AM, Alex Bennée wrote:
> This simple pasting helper can be used by those who don't need the
> entire softfloat api. Move it to the smaller types header.
>
> Signed-off-by: Alex Bennée <address@hidden>
> ---
> include/fpu/softfloat-types.h | 2 ++
> include/fpu/softfloat.h | 2 --
> 2 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/include/fpu/softfloat-types.h b/include/fpu/softfloat-types.h
> index 2aae6a89b19..7e88152dfc4 100644
> --- a/include/fpu/softfloat-types.h
> +++ b/include/fpu/softfloat-types.h
> @@ -80,6 +80,8 @@ this code that are retained.
> #ifndef SOFTFLOAT_TYPES_H
> #define SOFTFLOAT_TYPES_H
>
> +#define LIT64( a ) a##LL
Better would be to replace all uses with {,U}INT64_C from <stdint.h>.
But if you prefer this smaller patch for now,
Acked-by: Richard Henderson <address@hidden>
r~
- [Qemu-devel] [PATCH v1 0/7] softfloat header cleanups, Alex Bennée, 2019/08/08
- [Qemu-devel] [PATCH v1 1/7] fpu: move LIT64 helper to softfloat-types, Alex Bennée, 2019/08/08
- [Qemu-devel] [PATCH v1 4/7] fpu: rename softfloat-specialize.h -> .inc.c, Alex Bennée, 2019/08/08
- [Qemu-devel] [PATCH v1 2/7] fpu: move inline helpers into a separate header, Alex Bennée, 2019/08/08
- [Qemu-devel] [PATCH v1 6/7] target/riscv: rationalise softfloat includes, Alex Bennée, 2019/08/08
- [Qemu-devel] [PATCH v1 5/7] target/mips: rationalise softfloat includes, Alex Bennée, 2019/08/08