cvs commit: src/sys/ia64/include float.h

Alexander Leidinger Alexander at Leidinger.net
Tue Apr 1 11:31:06 PST 2003


On Mon, 31 Mar 2003 18:20:23 +1000
Peter Jeremy <peterjeremy at optushome.com.au> wrote:

> It's not clear exactly what this program is intended to test.

We noticed that icc does use other values for LDBL_MIN than we do, and
instead of just thinking that Intel does it right I wanted to verify it.
So I started with tests for float and double.

> > The *_MIN
> >values (or my test program) at least on i386 machines are wrong.
> 
> The *_MIN values represent the greatest negative value, not the
> smallest positive value.

*_MIN _is_ the smallest positive value... but the normalized one, not
the denormalized one I use. So yes, my program was wrong, but in another
way than you suggested. But I have to still say "thank you", your
comment resulted in rereading the (hopefully) appropriate docs and
noticing the "normalized" in them.

Thank you,
Alexander.

-- 
            0 and 1. Now what could be so hard about that?

http://www.Leidinger.net                       Alexander @ Leidinger.net
  GPG fingerprint = C518 BC70 E67F 143F BE91  3365 79E2 9C60 B006 3FE7


More information about the cvs-src mailing list