[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 07/72] softfloat: Inline float_raise
From: |
Richard Henderson |
Subject: |
[PATCH 07/72] softfloat: Inline float_raise |
Date: |
Fri, 7 May 2021 18:46:57 -0700 |
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
---
include/fpu/softfloat.h | 5 ++++-
fpu/softfloat-specialize.c.inc | 12 ------------
2 files changed, 4 insertions(+), 13 deletions(-)
diff --git a/include/fpu/softfloat.h b/include/fpu/softfloat.h
index 78ad5ca738..019c2ec66d 100644
--- a/include/fpu/softfloat.h
+++ b/include/fpu/softfloat.h
@@ -100,7 +100,10 @@ typedef enum {
| Routine to raise any or all of the software IEC/IEEE floating-point
| exception flags.
*----------------------------------------------------------------------------*/
-void float_raise(uint8_t flags, float_status *status);
+static inline void float_raise(uint8_t flags, float_status *status)
+{
+ status->float_exception_flags |= flags;
+}
/*----------------------------------------------------------------------------
| If `a' is denormal and we are in flush-to-zero mode then set the
diff --git a/fpu/softfloat-specialize.c.inc b/fpu/softfloat-specialize.c.inc
index 9ea318f3e2..487b29155c 100644
--- a/fpu/softfloat-specialize.c.inc
+++ b/fpu/softfloat-specialize.c.inc
@@ -228,18 +228,6 @@ floatx80 floatx80_default_nan(float_status *status)
const floatx80 floatx80_infinity
= make_floatx80_init(floatx80_infinity_high, floatx80_infinity_low);
-/*----------------------------------------------------------------------------
-| Raises the exceptions specified by `flags'. Floating-point traps can be
-| defined here if desired. It is currently not possible for such a trap
-| to substitute a result value. If traps are not implemented, this routine
-| should be simply `float_exception_flags |= flags;'.
-*----------------------------------------------------------------------------*/
-
-void float_raise(uint8_t flags, float_status *status)
-{
- status->float_exception_flags |= flags;
-}
-
/*----------------------------------------------------------------------------
| Internal canonical NaN format.
*----------------------------------------------------------------------------*/
--
2.25.1
- Re: [PATCH 03/72] qemu/host-utils: Add wrappers for carry builtins, (continued)
[PATCH 05/72] tests/fp: add quad support to the benchmark utility, Richard Henderson, 2021/05/07
[PATCH 04/72] accel/tcg: Use add/sub overflow routines in tcg-runtime-gvec.c, Richard Henderson, 2021/05/07
[PATCH 06/72] softfloat: Move the binary point to the msb, Richard Henderson, 2021/05/07
[PATCH 07/72] softfloat: Inline float_raise,
Richard Henderson <=
[PATCH 14/72] softfloat: Do not produce a default_nan from parts_silence_nan, Richard Henderson, 2021/05/07
[PATCH 17/72] softfloat: Use pointers with parts_default_nan, Richard Henderson, 2021/05/07
[PATCH 12/72] softfloat: fix return_nan vs default_nan_mode, Richard Henderson, 2021/05/07