[ruediger.franke@de.abb.com: 1.1.0: wrong negative HUGE_VAL]

Parker, Ron rdparker@butlermfg.com
Fri Jun 9 11:40:00 GMT 2000

> Anyone know anything about HUGE_VAL?

I only have my copy of the C++ standard it references the C standard on this
and my copy of it is at home.  So, you get my opinion. ISTM that on a
machine which uses IEEE floating point infinity is the correct value for
HUGE_VAL.  Supporting this is the glibc manual which says:

<<Macro: double HUGE_VAL

An expression representing a particular very large number. On machines that
use IEEE floating point format, the value is "infinity". On other machines,
it's typically the largest positive number that can be represented. 

The value of this macro is used as the return value from various
mathematical functions in overflow situations.>>

This is quoted from

IIRC the only time the IA32 FPU is not IEEE standard is when using 80-bit
floating point values and cygwin doesn't even use those values for 'long
double' because of some MS libraries or DLL's. 

It seems that the __infinity variable is not being properly set, I am
looking now...
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bin00000.bin
Type: application/vnd.ms-tnef
Size: 2493 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin-developers/attachments/20000609/7f90f4ae/attachment.tnef>

More information about the Cygwin-developers mailing list