This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: [patch, libfortran] Implement KIND specific floating point formatted output
- From: "François-Xavier Coudert" <fxcoudert at gmail dot com>
- To: "Jerry DeLisle" <jvdelisle at verizon dot net>
- Cc: "Fortran List" <fortran at gcc dot gnu dot org>, gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: Mon, 27 Aug 2007 11:13:22 +0100
- Subject: Re: [patch, libfortran] Implement KIND specific floating point formatted output
- Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Sp93CsJEqfQRVWwq3A6/YH4qWfiBzEIIPgx8fF7feln2y4c8lG5LGsz0LoRV2Wo69XlEMp3ToAHnVcej9Jhp3FBlsgk/vESlrxp9Q+eZVjHQcrvJbIN0dcK0GQaGeq1KnXnjrhN0AzDTsz2Kb3VOni6AlBs2GoVc98St5Votwgo=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=RgfPp5X8tDtNst+IK4l1WG3BhbIxrxFkepdcHXMhZERz4OTVB1PHv9g2j0HZ9lWm6TbQfADmvsK80INDQyn5bAaWLrIjX/aN3K57I3PMPuGn5v3K0tKB1dhXv8fIv/NFLiaM9RdJ++nwDf6ZwwE4tFaOIl4Yqk3aMa1+oq2sNkw=
- References: <46CBBADA.7070605@verizon.net>
:REVIEWMAIL:
> 2007-08-21 Jerry DeLisle <jvdelisle@gcc.gnu.org>
>
> * io/write.c (stdbool.h): Add include. (sign_t): Move typedef to
> new file write_float.def. Include write_float.def.
> (extract_real): Delete. (calculate_sign): Delete.
> (calculate_exp): Delete. (calculate_G_format): Delete.
> (output_float): Delete. (write_float): Delete.
> * io/write_float.def (calculate_sign): Added.
> (output_float): Refactored to be independent of kind and added to this
> file for inclusion. (write_infnan): New function to write "Infinite" or
> "NaN" depending on flags passed, independent of kind.
> (CALCULATE_EXP): New macro to build kind specific functions. Use it.
> (OUTPUT_FLOAT_FMT_G): New macro, likewise. Use it.
> (DTOA, DTOAL): Macros to implement "decimal to ascii".
> (WRITE_FLOAT): New macro for kind specific write_float functions.
> (write_float): Revised function to determine kind and use WRITE_FLOAT
> to implement kind specific output.
OK. Sorry I took so long to look into it.