From: Andrew Cagney <cagney@gnu.org>
To: DJ Delorie <dj@redhat.com>
Cc: binutils@sources.redhat.com, gdb-patches@sources.redhat.com
Subject: Re: [patch/rfc] Add host's floatformat
Date: Sat, 01 May 2004 14:27:00 -0000 [thread overview]
Message-ID: <4093B3E8.5080108@gnu.org> (raw)
In-Reply-To: <200405011325.i41DP0i7031346@greed.delorie.com>
>>This patch adds the host's floatformat (when known) to floatformat.[hc].
>
>
> Since we *are* the host, don't we *always* know what the host't float
> format is? I mean, we can just cast to float. But still, we should
> be able to auto-detect which floatformat is used at runtime, rather
> than guess in configure (and miss lots of host processors).
>
> We should be able to have a pre-compiled table of float constants and
> their hex representations, and just scan the table for bit equality to
> see which entries match.
>
> It might be a bit more complex to code the first time around, but it
> will be a lot less hackish in the long run (and maintenance-free :)
The patch, which is effectively lifed from GDB's code base has been
working well. However, I'll change those variables to functions so that
the possability you describe can be easily implemented.
Andrew
next prev parent reply other threads:[~2004-05-01 14:27 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-05-01 12:53 Andrew Cagney
2004-05-01 13:25 ` DJ Delorie
2004-05-01 14:27 ` Andrew Cagney [this message]
2004-05-01 14:06 ` Andreas Schwab
2004-05-01 14:34 ` Mark Kettenis
2004-05-01 15:00 ` Andrew Cagney
2004-05-01 17:20 ` Andrew Cagney
2004-05-02 10:04 ` Mark Kettenis
2004-05-02 20:49 ` DJ Delorie
2004-05-03 19:11 ` Andrew Cagney
2004-05-03 22:11 ` DJ Delorie
2004-05-03 22:29 ` Zack Weinberg
2004-05-03 22:34 ` DJ Delorie
2004-07-26 21:12 ` Andrew Cagney
2004-05-03 22:37 ` Andrew Cagney
2004-05-03 22:44 ` DJ Delorie
2004-05-03 23:21 ` Andrew Cagney
2004-05-03 23:48 ` DJ Delorie
2004-05-03 23:58 ` Zack Weinberg
2004-05-04 14:11 ` Andrew Cagney
2004-05-05 16:32 ` Andrew Cagney
2004-05-05 17:05 ` DJ Delorie
2004-05-02 20:49 ` DJ Delorie
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=4093B3E8.5080108@gnu.org \
--to=cagney@gnu.org \
--cc=binutils@sources.redhat.com \
--cc=dj@redhat.com \
--cc=gdb-patches@sources.redhat.com \
/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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).