------- Additional Comments From joseph at codesourcery dot com  2005-05-03 
10:54 -------
Subject: Re:  Problem with define of HUGE_VAL in math_c99.

On Tue, 3 May 2005, ebotcazou at gcc dot gnu dot org wrote:

> This works fine for "big" numbers, but are there similar tricks to distinguish
> denormals from normals?  If no, we'll have to resort to FLT_MIN and the like 
> or
> to bitwise-testing the exponent against 0.

Use __FLT_MIN__ etc. since <float.h> may not be included.

For a good fix we'll want to add built-in functions compatible with the 
Solaris header and remove the relevant fixes, and those would test the 
bits of the representation appropriately, but for now I think __FLT_MIN__ 
is the right approach and the fixes could more suitably go on 4.0 branch 
than new built-in functions.

We have a functional __builtin_isnan, there is no need to fix that 
particular definition.



-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19933

Reply via email to