This is the mail archive of the
newlib@sources.redhat.com
mailing list for the newlib project.
RE: HUGE is missing in math.h
- From: "Dave Korn" <dave dot korn at artimi dot com>
- To: "'Richard Earnshaw'" <rearnsha at gcc dot gnu dot org>
- Cc: <tprince at computer dot org>,"'Ralf Corsepius'" <ralf dot corsepius at rtems dot org>,"'Newlib List'" <newlib at sources dot redhat dot com>
- Date: Tue, 28 Jun 2005 15:33:49 +0100
- Subject: 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....