HUGE is missing in math.h

Dave Korn dave.korn@artimi.com
Tue Jun 28 14:33:00 GMT 2005


----Original Message----
>From: Richard Earnshaw
>Sent: 28 June 2005 15:26

> On Tue, 2005-06-28 at 14:44, Dave Korn wrote:
> 
>>   AFAIUI, IEEE fp is mandated by the ISO C spec, so any system that has a
>> non-IEEE-compliant long double type needs to be using software fp anyway,
>> doesn't it?  Does newlib care about support for non-ISO-C-compliant
>> targets? 
> 
> C99 does NOT mandate IEEE fp.  It does, however, have an annex (Annex F)
> that lists a number of features that an IEEE-fp conforming target
> provides.  


  Ah, thanks for the correction.  So, perhaps it would be appropriate to
define these FP constants by bitwise patterns on IEEE compliant targets, and
on non-IEEE targets we use the divide-by-zero patterns and hope for the
best?



    cheers,
      DaveK
-- 
Can't think of a witty .sigline today....



More information about the Newlib mailing list