summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorRichard Henderson2020-10-21 05:05:57 +0200
committerRichard Henderson2021-05-16 14:13:51 +0200
commit622090ae1992d242553a20c9fd08f1ad2afdab41 (patch)
tree6513e70f90cece5d56b8bd4f639ca6ca422f1230 /include
parentsoftfloat: Move the binary point to the msb (diff)
downloadqemu-622090ae1992d242553a20c9fd08f1ad2afdab41.tar.gz
qemu-622090ae1992d242553a20c9fd08f1ad2afdab41.tar.xz
qemu-622090ae1992d242553a20c9fd08f1ad2afdab41.zip
softfloat: Inline float_raise
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: David Hildenbrand <david@redhat.com> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'include')
-rw-r--r--include/fpu/softfloat.h5
1 files changed, 4 insertions, 1 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