[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v3 4/7] softfloat: define floatx80_round()
From: |
Aurelien Jarno |
Subject: |
Re: [Qemu-devel] [PATCH v3 4/7] softfloat: define floatx80_round() |
Date: |
Tue, 27 Jun 2017 22:15:44 +0200 |
User-agent: |
NeoMutt/20170113 (1.7.2) |
On 2017-06-27 21:12, Laurent Vivier wrote:
> Add a function to round a floatx80 to the defined precision
> (floatx80_rounding_precision)
>
> Signed-off-by: Laurent Vivier <address@hidden>
> Reviewed-by: Richard Henderson <address@hidden>
> ---
> fpu/softfloat.c | 15 +++++++++++++++
> include/fpu/softfloat.h | 1 +
> 2 files changed, 16 insertions(+)
>
> diff --git a/fpu/softfloat.c b/fpu/softfloat.c
> index 7af14e2..e9bf359 100644
> --- a/fpu/softfloat.c
> +++ b/fpu/softfloat.c
> @@ -5086,6 +5086,21 @@ float128 floatx80_to_float128(floatx80 a, float_status
> *status)
> }
>
>
> /*----------------------------------------------------------------------------
> +| Rounds the extended double-precision floating-point value `a'
Maybe it is worth mentioning the precision to which the value is rounded
(floatx80_rounding_precision) ?
Otherwise looks all fine to me.
Reviewed-by: Aurelien Jarno <address@hidden>
--
Aurelien Jarno GPG: 4096R/1DDD8C9B
address@hidden http://www.aurel32.net
- [Qemu-devel] [PATCH v3 0/7] target/m68k: implement 680x0 FPU (part 2), Laurent Vivier, 2017/06/27
- [Qemu-devel] [PATCH v3 4/7] softfloat: define floatx80_round(), Laurent Vivier, 2017/06/27
- Re: [Qemu-devel] [PATCH v3 4/7] softfloat: define floatx80_round(),
Aurelien Jarno <=
- [Qemu-devel] [PATCH v3 1/7] target/m68k: add fscc., Laurent Vivier, 2017/06/27
- [Qemu-devel] [PATCH v3 3/7] target/m68k: add explicit single and double precision operations, Laurent Vivier, 2017/06/27
- [Qemu-devel] [PATCH v3 5/7] target/m68k: add fsglmul and fsgldiv, Laurent Vivier, 2017/06/27
- [Qemu-devel] [PATCH v3 6/7] target/m68k: add explicit single and double precision operations (part 2), Laurent Vivier, 2017/06/27
- [Qemu-devel] [PATCH v3 2/7] target/m68k: add fmovecr, Laurent Vivier, 2017/06/27