This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH, final] Formatted output of IEEE exceptional values
- From: Steve Kargl <sgk at troutmask dot apl dot washington dot edu>
- To: Jerry DeLisle <jvdelisle at verizon dot net>
- Cc: Fortran List <fortran at gcc dot gnu dot org>, patch <gcc-patches at gcc dot gnu dot org>
- Date: Sat, 23 Jul 2005 18:10:04 -0700
- Subject: Re: [PATCH, final] Formatted output of IEEE exceptional values
- References: <42E1E34E.7030801@verizon.net>
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