This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC 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: [libstdc++] numeric_limits: is_iec559


On Sun, Sep 22, 2002 at 09:13:41AM +0200, Gabriel Dos Reis wrote:
> | Indeed, the example numeric_limits<float> in section 18.2.1.5 shows
> | has_denorm=denorm_absent but is_iec559=true.  Not that it matters at
> | the moment, since we don't have an target that has this case.
> 
> I believe that example is bogus.  I'll raise the issue on the Library
> Reflector. 

Apparently I spoke too soon.  David Edelsohn posted today a synthetic
IBM format that can't represent denormals as LIA-1 defines denormals.
In particular, 2**(emin-p) is not representable.

As currently defined, __LDBL_DENORMAL_MIN__ will evaluate to zero, 
so has_denorm will be set to absent, which I think is correct.

So how should we define is_iec559 for this format?


r~


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