This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: Implementation of <tgmath.h>
- To: Ulrich Drepper <drepper at cygnus dot com>
- Subject: Re: Implementation of <tgmath.h>
- From: Joern Rennecke <amylaar at cygnus dot co dot uk>
- Date: Fri, 28 Jul 2000 23:12:40 +0100 (BST)
- CC: Geoff Keating <geoffk at cygnus dot com>, jsm28 at cam dot ac dot uk, gcc at gcc dot gnu dot org, libc-alpha at sourceware dot cygnus dot com
> Geoff Keating <geoffk@cygnus.com> writes:
>
> > There is, or used to be, a '__builtin_classify_type' builtin that
> > might be helpful here.
>
> No, this does not work.
Why not? You could check for real_type_class, and if it is, you use the
sizeof tests.
Another approach would be to cast 0.25 to the argument type, and test if
that's non-zero. If so, we are dealing with a floating point type.