decNumber.h (decNumberNegate): Remove.

libdecnumber/
	* decNumber.h (decNumberNegate): Remove.
gcc/
	* dfp.c (decimal_to_decnumber): Do not use decNumberNegate to
	negate dn -- manipulate it directly.

From-SVN: r114922
This commit is contained in:
Ben Elliston 2006-06-23 01:46:00 +00:00 committed by Ben Elliston
parent 8c3390831f
commit f64ad1d319
4 changed files with 10 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2006-06-23 Ben Elliston <bje@au.ibm.com>
* dfp.c (decimal_to_decnumber): Do not use decNumberNegate to
negate dn -- manipulate it directly.
2006-06-22 Roger Sayle <roger@eyesopen.com>
Steven Bosscher <stevenb.gcc@gmail.com>

View File

@ -137,7 +137,7 @@ decimal_to_decnumber (const REAL_VALUE_TYPE *r, decNumber *dn)
/* Fix up sign bit. */
if (r->sign != decNumberIsNegative (dn))
decNumberNegate (dn);
dn->bits ^= DECNEG;
}
/* Encode a real into an IEEE 754R decimal32 type. */

View File

@ -1,3 +1,7 @@
2006-06-23 Ben Elliston <bje@au.ibm.com>
* decNumber.h (decNumberNegate): Remove.
2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
* Makefile.in: Add install-html target. Add install-html to .PHONY

View File

@ -178,6 +178,5 @@ decNumber *decNumberZero (decNumber *);
#define decNumberIsNegative(dn) (((dn)->bits&DECNEG)!=0)
#define decNumberIsNaN(dn) (((dn)->bits&(DECNAN|DECSNAN))!=0)
#define decNumberIsInfinite(dn) (((dn)->bits&DECINF)!=0)
#define decNumberNegate(dn) (((dn)->bits)^=DECNEG)
#endif