public inbox for
 help / color / mirror / Atom feed
From: "Joseph S. Myers" <>
To: Richard Henderson <>
Cc: <>, <>,
	Marcus Shawcroft	<>,
	Richard Henderson <>,
	David Holsgrove <>,
	Chris Metcalf <>,
	"David S. Miller" <>
Subject: Re: Implement fma in soft-fp
Date: Tue, 25 Jun 2013 16:13:00 -0000	[thread overview]
Message-ID: <> (raw)
In-Reply-To: <>

On Tue, 25 Jun 2013, Richard Henderson wrote:

> Of course, that would require glibc to build parts with the c++ compiler,
> so that may be a non-starter...

And libgcc, and the Linux kernel - I don't think requiring a C++ compiler 
all over the place would be a good idea (and it would complicate 
bootstrapping - you can't build libstdc++ without system headers, but need 
to have built libgcc before building glibc, so a bootstrap compiler would 
need the C++ compiler and a subset of the runtime libraries).

It's possible something could be done simply with inline always_inline 
functions in C.  The code doesn't just predate SRA, it predates inlining 
on trees.  I think I once discussed that issue, for this code, of why 
inlines were less efficient than macros with GCC as it stood at that time, 
with Peter Maydell around 1997/8.

(But maybe things like getting access to exception / rounding mode state, 
which is in a local variable in the toplevel function, would complicate 
any such macro-avoidance scheme, including the C++ ones.)

Joseph S. Myers

  reply	other threads:[~2013-06-25 16:13 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-22 17:17 Joseph S. Myers
2013-06-25 15:30 ` Richard Henderson
2013-06-25 16:13   ` Joseph S. Myers [this message]
2013-06-25 16:23     ` Richard Henderson
2013-06-25 16:31 ` Richard Henderson
2013-06-25 16:45   ` Joseph S. Myers
2013-06-27 23:26 ` Joseph S. Myers
2013-07-02 12:57   ` Ping " Joseph S. Myers
2013-07-02 14:45     ` Richard Henderson

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:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \ \ \ \ \ \ \ \

* 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).