This is the mail archive of the newlib@sources.redhat.com mailing list for the newlib 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: HUGE is missing in math.h


----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....


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