Commit 65f14117 by John Tytgat Committed by Nick Clifton

fp16.c (__gnu_f2h_internal): Fix inaccuracy when aexp is 25.

	* config/arm/fp16.c (__gnu_f2h_internal): Fix inaccuracy when aexp
	is 25.

From-SVN: r194474
parent 3ecce8a1
2012-12-13 John Tytgat <John@bass-software.com>
* config/arm/fp16.c (__gnu_f2h_internal): Fix inaccuracy when aexp
is 25.
2012-12-12 Jakub Jelinek <jakub@redhat.com> 2012-12-12 Jakub Jelinek <jakub@redhat.com>
PR libgcc/55451 PR libgcc/55451
......
...@@ -47,11 +47,9 @@ __gnu_f2h_internal(unsigned int a, int ieee) ...@@ -47,11 +47,9 @@ __gnu_f2h_internal(unsigned int a, int ieee)
mantissa |= 0x00800000; mantissa |= 0x00800000;
if (aexp < -14) if (aexp < -14)
{ {
mask = 0x007fffff; mask = 0x00ffffff;
if (aexp < -25) if (aexp >= -25)
aexp = -26; mask >>= 25 + aexp;
else if (aexp != -25)
mask >>= 24 + aexp;
} }
else else
mask = 0x00001fff; mask = 0x00001fff;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment