From: Paul Schlie <schlie@comcast.net>
To: Andrew Cagney <cagney@gnu.org>, Mark Kettenis <kettenis@gnu.org>,
<gdb-patches@sources.redhat.com>
Subject: Re: [RFC/RFA] Fix varobj.c value comparison problems
Date: Sun, 20 Feb 2005 20:37:00 -0000 [thread overview]
Message-ID: <BE3D8FA1.9279%schlie@comcast.net> (raw)
> Mark Kettenis <kettenis@gnu.org> wrote:
>> Andrew Cagney <cagney@gnu.org> wrote:
>> Mark, the thing that's missing is an automated testcase. Having
>> something change from -0.0 to +0.0 should do it.
>
> Ah, but that is the exact the opposite of what triggered this fix:
>
> NaN != NaN
>
> even though the bit pattern is the same, whereas
>
> -0.0 == +0.0
Don't know where the notion of -0.0 == +0.0 is derived from, as they
clearly express different semantics:
1/-0.0 => -inf
1/+0.0 => +inf
Therefore clearly aren't equivalent; although +0.0 == abs(-0.0) is.
Nor correspondingly, is it sensible that Nan != NaN; as regardless of
their indeterminate respective values, they express equivalent semantics.
Apparently, a few of the bits of wisdom brought to us by committees.
next reply other threads:[~2005-02-20 5:51 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-02-20 20:37 Paul Schlie [this message]
-- strict thread matches above, loose matches on Subject: below --
2005-02-18 15:28 Mark Kettenis
2005-02-18 15:28 ` Daniel Jacobowitz
2005-02-18 19:00 ` Andrew Cagney
2005-02-20 15:21 ` M.M. Kettenis
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=BE3D8FA1.9279%schlie@comcast.net \
--to=schlie@comcast.net \
--cc=cagney@gnu.org \
--cc=gdb-patches@sources.redhat.com \
--cc=kettenis@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox