From: Andreas Jaeger <aj@suse.de>
To: Ulrich Drepper <drepper@redhat.com>
Cc: GNU libc hacker <libc-hacker@sources.redhat.com>
Subject: Re: carg, cimag, creal,.. in tgmath.h
Date: Sun, 15 Jun 2003 19:00:00 -0000 [thread overview]
Message-ID: <u8el1vqi8e.fsf@gromit.moeb> (raw)
In-Reply-To: <3EECA99F.2030700@redhat.com> (Ulrich Drepper's message of "Sun, 15 Jun 2003 10:15:11 -0700")
[-- Attachment #1: Type: text/plain, Size: 879 bytes --]
Ulrich Drepper <drepper@redhat.com> writes:
> Andreas Jaeger wrote:
>
>> Here's a patch to fix the c* functions. Ok to commit?
>
> What exactly is wrong. And cite the standard.
From 7.22:
[#6] For each unsuffixed function in <complex.h> that is not
a c-prefixed counterpart to a function in <math.h>, the
corresponding type-generic macro has the same name as the
function. These type-generic macros are:
carg conj creal
cimag cproj
Use of the macro with any real or complex argument invokes a
complex function.
The problem is that carg(real float variable) will call the long
double function.
Andreas
--
Andreas Jaeger, SuSE Linux AG, aj@suse.de, http://www.suse.de/~aj
GPG fingerprint = 93A3 365E CE47 B889 DF7F FED1 389A 563C C272 A126
[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]
next prev parent reply other threads:[~2003-06-15 19:00 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-06-15 16:49 Andreas Jaeger
2003-06-15 17:16 ` Ulrich Drepper
2003-06-15 19:00 ` Andreas Jaeger [this message]
2003-06-16 7:59 ` Ulrich Drepper
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=u8el1vqi8e.fsf@gromit.moeb \
--to=aj@suse.de \
--cc=drepper@redhat.com \
--cc=libc-hacker@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).