[comp.std.c] tgmath.h macros: problems with implementation
Ulrich Drepper
drepper@cygnus.com
Tue Oct 20 21:26:00 GMT 1998
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 `------------------------
More information about the Libc-hacker
mailing list