diff options
author | Alex Bennée | 2014-03-17 17:31:51 +0100 |
---|---|---|
committer | Peter Maydell | 2014-03-17 17:31:51 +0100 |
commit | 7baeabce1d25c667d0ec7e4e74a1312e0b887b54 (patch) | |
tree | 9bb030bee2264dce785145cf720c5991cf68baa0 /include/fpu | |
parent | target-arm: A64: Implement FCVTZS, FCVTZU in the shift-imm categories (diff) | |
download | qemu-7baeabce1d25c667d0ec7e4e74a1312e0b887b54.tar.gz qemu-7baeabce1d25c667d0ec7e4e74a1312e0b887b54.tar.xz qemu-7baeabce1d25c667d0ec7e4e74a1312e0b887b54.zip |
softfloat: export squash_input_denormal functions
I need these available outside of softfloat for some of the reciprocal
processing in aarch64 helper functions.
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <rth@twiddle.net>
Message-id: 1394822294-14837-20-git-send-email-peter.maydell@linaro.org
Diffstat (limited to 'include/fpu')
-rw-r--r-- | include/fpu/softfloat.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/fpu/softfloat.h b/include/fpu/softfloat.h index 4b4df88527..db878c1313 100644 --- a/include/fpu/softfloat.h +++ b/include/fpu/softfloat.h @@ -245,6 +245,13 @@ INLINE flag get_default_nan_mode(float_status *status) void float_raise( int8 flags STATUS_PARAM); /*---------------------------------------------------------------------------- +| If `a' is denormal and we are in flush-to-zero mode then set the +| input-denormal exception and return zero. Otherwise just return the value. +*----------------------------------------------------------------------------*/ +float32 float32_squash_input_denormal(float32 a STATUS_PARAM); +float64 float64_squash_input_denormal(float64 a STATUS_PARAM); + +/*---------------------------------------------------------------------------- | Options to indicate which negations to perform in float*_muladd() | Using these differs from negating an input or output before calling | the muladd function in that this means that a NaN doesn't have its |