public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
From: Richard Henderson <rth@cygnus.com>
To: "Joseph S. Myers" <jsm28@cam.ac.uk>
Cc: gcc@gcc.gnu.org, libc-alpha@sourceware.cygnus.com
Subject: Re: Implementation of <tgmath.h>
Date: Mon, 31 Jul 2000 11:14:00 -0000	[thread overview]
Message-ID: <20000731111450.A6913@cygnus.com> (raw)
In-Reply-To: <Pine.SOL.4.21.0007282023140.4217-100000@red.csi.cam.ac.uk>

On Fri, Jul 28, 2000 at 08:47:26PM +0100, Joseph S. Myers wrote:
> The best suggestion I have for a compiler extension to allow a correct
> implementation would be a series of builtin functions corresponding to
> the glibc macros, so that for example
> 
> #define expm1(Val) __builtin_tgmath_unary_real_only(Val, expm1f, expm1, \
> 						    expm1l)
> 
> would have the compiler create a call to the appropriate one of expm1f,
> expm1, expm1l according to the type of Val and the rules of <tgmath.h>
> when it sees a call to __builtin_tgmath_unary_real_only.

Ug.  This would seem to need the addition of mini-templates to 
the C front end. 

OTOH, the IA-64 abi has some builtin functions that could benefit
from this.  At present we implement two separate builtins and
play header file tricks to try and make it come out right.


r~

  parent reply	other threads:[~2000-07-31 11:14 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-07-28 12:47 Joseph S. Myers
2000-07-28 12:54 ` Mark Mitchell
2000-07-28 13:43 ` Geoff Keating
2000-07-28 13:55   ` Ulrich Drepper
2000-07-28 15:12     ` Joern Rennecke
2000-07-28 15:36       ` Joseph S. Myers
2000-07-28 19:04       ` Joseph S. Myers
2000-07-31 11:14 ` Richard Henderson [this message]
2000-07-31 12:45   ` Declaration clashing Matt Minnis

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=20000731111450.A6913@cygnus.com \
    --to=rth@cygnus.com \
    --cc=gcc@gcc.gnu.org \
    --cc=jsm28@cam.ac.uk \
    --cc=libc-alpha@sourceware.cygnus.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).