summaryrefslogtreecommitdiffstats
path: root/include/fpu
diff options
context:
space:
mode:
authorPeter Maydell2014-01-07 18:19:11 +0100
committerPeter Maydell2014-01-08 20:07:22 +0100
commitc4a1c5e7e2fae28ef3fde2aadf7ec6fed0a5a967 (patch)
tree951232751292ea417e2f71b870e69b7b604f5007 /include/fpu
parentsoftfloat: Provide complete set of accessors for fp state (diff)
downloadqemu-c4a1c5e7e2fae28ef3fde2aadf7ec6fed0a5a967.tar.gz
qemu-c4a1c5e7e2fae28ef3fde2aadf7ec6fed0a5a967.tar.xz
qemu-c4a1c5e7e2fae28ef3fde2aadf7ec6fed0a5a967.zip
softfloat: Factor out RoundAndPackFloat16 and NormalizeFloat16Subnormal
In preparation for adding conversions between float16 and float64, factor out code currently done inline in the float16<=>float32 conversion functions into functions RoundAndPackFloat16 and NormalizeFloat16Subnormal along the lines of the existing versions for the other float types. Note that we change the handling of zExp from the inline code to match the API of the other RoundAndPackFloat functions; however we leave the positioning of the binary point between bits 22 and 23 rather than shifting it up to the high end of the word. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Richard Henderson <rth@twiddle.net>
Diffstat (limited to 'include/fpu')
0 files changed, 0 insertions, 0 deletions