softfloat: Inline float_raise
authorRichard Henderson <richard.henderson@linaro.org>
Wed, 21 Oct 2020 03:05:57 +0000 (20:05 -0700)
committerRichard Henderson <richard.henderson@linaro.org>
Sun, 16 May 2021 12:13:51 +0000 (07:13 -0500)
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: David Hildenbrand <david@redhat.com>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
fpu/softfloat-specialize.c.inc
include/fpu/softfloat.h

index e19809c04b345f1d5ff6d04b6e0c96b3d7ddc09e..96ed8c1a26dd70d6a16f9da8ce22c8fd4dad4785 100644 (file)
@@ -227,18 +227,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.
 *----------------------------------------------------------------------------*/
index 78ad5ca738bb7ced65adfdf3bd5f1c92d18fab3d..019c2ec66d69d63ee09fd9989b26629576285d83 100644 (file)
@@ -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