Commit Graph

5 Commits

Author SHA1 Message Date
Jens Schweikhardt
e8117c82f6 Properly parenthesize the __tg_is_complex() macro by moving a closing
paren to where it belongs.

MFC after:	7 days
2007-02-02 18:30:23 +00:00
Stefan Farfeleder
6549b8a280 Add a workaround to recognise I/_Complex_I as complex arguments. Although
the GCC manual claims that the expression 1.0fi has type float _Complex,
__builtin_types_compatible_p(float _Complex, __typeof__(1.0fi))) yields 0.
2004-09-03 23:44:09 +00:00
Stefan Farfeleder
a551dea2a8 Use the keyword '_Complex' rather than the macro 'complex' since
applications are allowed to undefine the latter.
2004-09-03 23:31:28 +00:00
Stefan Farfeleder
9b3310685b Embarrassing typo: s/nextbyint/nearbyint/ 2004-09-03 23:26:55 +00:00
Stefan Farfeleder
b902e8b239 Implement C99's standard header <tgmath.h>. It provides type-generic macros
for the <math.h> and <complex.h> functions that have float, double and long
double implementations.  Such type-generic macros expand to an actual
function, depending on the types of the macro arguments, eg. if <tgmath.h>
is included, the invocation cos(1.0f) calls the function cosf().
2004-08-08 20:05:47 +00:00