This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH, final] Formatted output of IEEE exceptional values


On Fri, Jul 22, 2005 at 11:27:26PM -0700, Jerry DeLisle wrote:
> The attached patch and test case reflect the additional case of a field 
> width specified as zero.
> 
> F2003 says: "When w is zero, the processor selects the field width".
> 
> I have selected that width to be 4 in the case of exceptional values to 
> output -Inf or +Inf
> 
> F2003 also says: "If w is less than 3, the field is filled with 
> asterisks; otherwise; if w is less than 8, 'Inf' is produced".
> 
> The negative sign is not optional, so I have interpreted the case of w=3 
> to  be -Inf which exceeds the field width and so asterisks are produced.
> 

This is ok.  Although I would recommend the addition of 
comment on the rationale for the choices for w = 0, 3, and 8.

-- 
Steve


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]