summaryrefslogtreecommitdiffstats
path: root/balloon.c
diff options
context:
space:
mode:
authorJoseph Myers2020-06-18 01:24:29 +0200
committerPaolo Bonzini2020-06-26 15:39:39 +0200
commit1f18a1e6ab8368a4eab2d22894d3b2ae75250cd3 (patch)
tree74f4efb45983d3373128b282ddd31c2fb6689391 /balloon.c
parenttarget/i386: reimplement fyl2xp1 using floatx80 operations (diff)
downloadqemu-1f18a1e6ab8368a4eab2d22894d3b2ae75250cd3.tar.gz
qemu-1f18a1e6ab8368a4eab2d22894d3b2ae75250cd3.tar.xz
qemu-1f18a1e6ab8368a4eab2d22894d3b2ae75250cd3.zip
target/i386: reimplement fyl2x using floatx80 operations
The x87 fyl2x emulation is currently based around conversion to double. This is inherently unsuitable for a good emulation of any floatx80 operation. Reimplement using the soft-float operations, building on top of the reimplementation of fyl2xp1 and factoring out code to be shared between the two instructions. The included test assumes that the result in round-to-nearest mode should always be one of the two closest floating-point numbers to the mathematically exact result (including that it should be exact, in the exact cases which cover more cases than for fyl2xp1). Signed-off-by: Joseph Myers <joseph@codesourcery.com> Message-Id: <alpine.DEB.2.21.2006172321530.20587@digraph.polyomino.org.uk> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'balloon.c')
0 files changed, 0 insertions, 0 deletions