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/gfortran] Fix handling of subnormal numbers


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


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