fp-bit.c (pack_d): Do not clear SIGN when fraction is 0.
* fp-bit.c (pack_d): Do not clear SIGN when fraction is 0. (_fpadd_parts): Get sign right for 0. From-SVN: r22485
This commit is contained in:
parent
1553cb7a66
commit
b567319fc3
2 changed files with 6 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
|||
1998-09-19 Torbjorn Granlund <tege@matematik.su.se>
|
||||
|
||||
* fp-bit.c (pack_d): Do not clear SIGN when fraction is 0.
|
||||
(_fpadd_parts): Get sign right for 0.
|
||||
|
||||
1998-09-19 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
|
||||
|
||||
* ginclude/varargs.h: Add support for C4x target.
|
||||
|
|
|
@ -460,7 +460,6 @@ pack_d ( fp_number_type * src)
|
|||
else if (fraction == 0)
|
||||
{
|
||||
exp = 0;
|
||||
sign = 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -735,7 +734,7 @@ _fpadd_parts (fp_number_type * a,
|
|||
{
|
||||
tfraction = a_fraction - b_fraction;
|
||||
}
|
||||
if (tfraction > 0)
|
||||
if (tfraction >= 0)
|
||||
{
|
||||
tmp->sign = 0;
|
||||
tmp->normal_exp = a_normal_exp;
|
||||
|
|
Loading…
Add table
Reference in a new issue