This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Implementation of <tgmath.h>


> 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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]