diff options
author | obrien <obrien@FreeBSD.org> | 1999-10-16 06:09:09 +0000 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 1999-10-16 06:09:09 +0000 |
commit | cae8fa8120c70195f34a2456f18c4c848a2d3e0c (patch) | |
tree | f7d3a3ab9c32694206552e767626366f016f2062 /contrib/gcc/config/fp-bit.c | |
parent | 84656b55b6e25e30322dc903a05de53706361d3d (diff) | |
download | FreeBSD-src-cae8fa8120c70195f34a2456f18c4c848a2d3e0c.zip FreeBSD-src-cae8fa8120c70195f34a2456f18c4c848a2d3e0c.tar.gz |
Virgin import of the GCC 2.95.1 compilers
Diffstat (limited to 'contrib/gcc/config/fp-bit.c')
-rw-r--r-- | contrib/gcc/config/fp-bit.c | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/contrib/gcc/config/fp-bit.c b/contrib/gcc/config/fp-bit.c index f4a1e2a..6b8bd70 100644 --- a/contrib/gcc/config/fp-bit.c +++ b/contrib/gcc/config/fp-bit.c @@ -156,8 +156,8 @@ __floatsixf (){ abort(); } #else /* !EXTENDED_FLOAT_STUBS, rest of file */ -typedef SFtype __attribute__ ((mode (SF))); -typedef DFtype __attribute__ ((mode (DF))); +typedef float SFtype __attribute__ ((mode (SF))); +typedef float DFtype __attribute__ ((mode (DF))); typedef int HItype __attribute__ ((mode (HI))); typedef int SItype __attribute__ ((mode (SI))); @@ -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; @@ -1000,8 +999,7 @@ multiply (FLO_type arg_a, FLO_type arg_b) #if defined(L_div_sf) || defined(L_div_df) static INLINE fp_number_type * _fpdiv_parts (fp_number_type * a, - fp_number_type * b, - fp_number_type * tmp) + fp_number_type * b) { fractype bit; fractype numerator; @@ -1093,13 +1091,12 @@ divide (FLO_type arg_a, FLO_type arg_b) { fp_number_type a; fp_number_type b; - fp_number_type tmp; fp_number_type *res; unpack_d ((FLO_union_type *) & arg_a, &a); unpack_d ((FLO_union_type *) & arg_b, &b); - res = _fpdiv_parts (&a, &b, &tmp); + res = _fpdiv_parts (&a, &b); return pack_d (res); } @@ -1332,7 +1329,7 @@ si_to_float (SItype arg_a) { /* Special case for minint, since there is no +ve integer representation for it */ - if (arg_a == 0x80000000) + if (arg_a == (SItype) 0x80000000) { return -2147483648.0; } |