diff options
author | Richard Henderson | 2018-05-10 20:58:25 +0200 |
---|---|---|
committer | Richard Henderson | 2018-05-18 00:24:19 +0200 |
commit | 0664335a6eb65d684918dd3f1a7f0a3d5b92cbe1 (patch) | |
tree | be4ce00572310a08cd770153e7146cda2459da8a /fpu | |
parent | fpu/softfloat: Split floatXX_silence_nan from floatXX_maybe_silence_nan (diff) | |
download | qemu-0664335a6eb65d684918dd3f1a7f0a3d5b92cbe1.tar.gz qemu-0664335a6eb65d684918dd3f1a7f0a3d5b92cbe1.tar.xz qemu-0664335a6eb65d684918dd3f1a7f0a3d5b92cbe1.zip |
fpu/softfloat: Move softfloat-specialize.h below FloatParts definition
We want to be able to specialize on the canonical representation.
Tested-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'fpu')
-rw-r--r-- | fpu/softfloat.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/fpu/softfloat.c b/fpu/softfloat.c index d07419324a..0d17027379 100644 --- a/fpu/softfloat.c +++ b/fpu/softfloat.c @@ -96,16 +96,6 @@ this code that are retained. #include "fpu/softfloat-macros.h" /*---------------------------------------------------------------------------- -| Functions and definitions to determine: (1) whether tininess for underflow -| is detected before or after rounding by default, (2) what (if anything) -| happens when exceptions are raised, (3) how signaling NaNs are distinguished -| from quiet NaNs, (4) the default generated quiet NaNs, and (5) how NaNs -| are propagated from function inputs to output. These details are target- -| specific. -*----------------------------------------------------------------------------*/ -#include "softfloat-specialize.h" - -/*---------------------------------------------------------------------------- | Returns the fraction bits of the half-precision floating-point value `a'. *----------------------------------------------------------------------------*/ @@ -322,6 +312,16 @@ static inline float64 float64_pack_raw(FloatParts p) return make_float64(pack_raw(float64_params, p)); } +/*---------------------------------------------------------------------------- +| Functions and definitions to determine: (1) whether tininess for underflow +| is detected before or after rounding by default, (2) what (if anything) +| happens when exceptions are raised, (3) how signaling NaNs are distinguished +| from quiet NaNs, (4) the default generated quiet NaNs, and (5) how NaNs +| are propagated from function inputs to output. These details are target- +| specific. +*----------------------------------------------------------------------------*/ +#include "softfloat-specialize.h" + /* Canonicalize EXP and FRAC, setting CLS. */ static FloatParts canonicalize(FloatParts part, const FloatFmt *parm, float_status *status) |