This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH/gfortran] Fix handling of subnormal numbers
- From: Tobias Schlüter <tobias dot schlueter at physik dot uni-muenchen dot de>
- To: Steve Kargl <sgk at troutmask dot apl dot washington dot edu>
- Cc: fortran at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org
- Date: Thu, 14 Apr 2005 12:23:38 +0200
- Subject: Re: [PATCH/gfortran] Fix handling of subnormal numbers
- References: <20050413230002.GA23353@troutmask.apl.washington.edu>
Steve Kargl wrote:
> 2005-04-13 Steven G. Kargl <kargls@comcast.net>
>
> * gfortran.h (gfc_real_info): Add subnormal struct member.
> * arith.c (gfc_arith_init_1): Set it.
> (gfc_check_real_range): Use it.
> * simplify.c (gfc_simplify_nearest): Fix nearest(0.,1.).
>
> 2005-04-13 Steven G. Kargl <kargls@comcast.net>
>
> * gfortran.dg/underflow.f90: Use tiny(x)/huge(x).
This is ok. Do you plan to implement the truncating rth suggested? Another
thing that has crossed my mind with regard to what we may need from the FP
library, is a way to convert between mpfr_t and the target's binary
representation. This would be required to implement hollerith constants, at
least if we want to be evaluate expressions involving them during constant
folding.
- Tobi