BR 3392399: float: get rid of bogus exponent calculation
commit3646e7dde050c06101d1b1bb4dd4f944354777de
authorH. Peter Anvin <hpa@zytor.com>
Thu, 6 Apr 2017 04:47:20 +0000 (5 21:47 -0700)
committerH. Peter Anvin <hpa@zytor.com>
Thu, 6 Apr 2017 04:47:20 +0000 (5 21:47 -0700)
treeebfbaaa7dbaf8fbd9a840aa78f6d4c750cb35345
parent90cc4154ae1dd5152ba0c3a47ab8ae357fd0530a
BR 3392399: float: get rid of bogus exponent calculation

It turns out that the calculation of "twopwr" in ieee_flconvert_bin()
was more complex than necessary, and wrong in the case of a pure
fraction.

Reported-by: Roel <roelsuidgeest@zonnet.nl>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
asm/float.c
test/hexfp.asm [new file with mode: 0644]