This is the mail archive of the
libc-hacker@sourceware.cygnus.com
mailing list for the glibc project.
Re: [comp.std.c] tgmath.h macros: problems with implementation
- To: Andreas Jaeger <aj@arthur.rhein-neckar.de>
- Subject: Re: [comp.std.c] tgmath.h macros: problems with implementation
- From: Ulrich Drepper <drepper@cygnus.com>
- Date: 20 Oct 1998 21:25:02 -0700
- Cc: libc-hacker@cygnus.com
- References: <u8ems36jbd.fsf@arthur.rhein-neckar.de>
- Reply-To: drepper@cygnus.com (Ulrich Drepper)
Andreas Jaeger <aj@arthur.rhein-neckar.de> writes:
> On comp.std.c is a small thread about problems implementing
> <tgmath.h>. I'm appending the articles that appeared so far since I
> guess we face the same problem (and even more) as the following simple
> program shows:.
> #include <tgmath.h>
>
> int main(void)
> {
>
> sin(sin(1.0f));
> }
Try it once more. I really made some big mistakes in the original
code. This one should work just fine.
The only problem is gcc. The resulting code (at least on ix86) is
horrible, And: you never should use tgmath.h without optimization.
--
---------------. drepper at gnu.org ,-. 1325 Chesapeake Terrace
Ulrich Drepper \ ,-------------------' \ Sunnyvale, CA 94089 USA
Cygnus Solutions `--' drepper at cygnus.com `------------------------