PATCH: Add DFP thread-safty test

H.J. Lu hjl@lucon.org
Fri Jul 6 16:53:00 GMT 2007


On Fri, Jul 06, 2007 at 09:33:58AM -0700, Janis Johnson wrote:
> On Fri, 2007-07-06 at 07:50 -0700, H.J. Lu wrote:
> > This patch adds a DFP thread-safty test.
> 
> > +#include "dfp-round.h"
> 
> > +  DFP_SETROUND (FE_DEC_DOWNWARD);
> 
> The comment at the beginning of dfp-round.h says:
> 
> /* This is very temporary; right now it gets functions in libgcc that
>    pass on the rounding mode to decNumber, but later it can be replaced
>    with Official Stuff.  */
> 
> This was meant to eventually be replaced with calls to fe_dec_setround
> as specified in the decimal float technical report.
> 
> If the BID support in libgcc will provide a documented interface for
> setting and getting rounding modes then please use different names
> for those functions, not the same names as the temporary testing
> support functions used for DPD rounding.
> 
> Other than that the new test is OK.
> 
> Janis
> 
> 



More information about the Gcc-patches mailing list