aboutsummaryrefslogtreecommitdiff
path: root/scripts/switch-timer-api
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2014-01-07 17:19:11 +0000
committerPeter Maydell <peter.maydell@linaro.org>2014-01-07 19:18:08 +0000
commit84c6b75d8557a6e638dc72343428b0a78b66923f (patch)
tree503da2e78d3d10ae785fde4e5a267d7bb3db8129 /scripts/switch-timer-api
parente9ef30c079354db6a8eb5bd6574b948288a55b94 (diff)
downloadqemu-84c6b75d8557a6e638dc72343428b0a78b66923f.zip
qemu-84c6b75d8557a6e638dc72343428b0a78b66923f.tar.gz
qemu-84c6b75d8557a6e638dc72343428b0a78b66923f.tar.bz2
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 'scripts/switch-timer-api')
0 files changed, 0 insertions, 0 deletions