Use the keyword '_Complex' rather than the macro 'complex' since

applications are allowed to undefine the latter.
This commit is contained in:
Stefan Farfeleder 2004-09-03 23:31:28 +00:00
parent 3785db4f85
commit a551dea2a8

View File

@ -57,14 +57,14 @@
#define __tg_type3(e1, e2, e3, t) \
(__tg_type(e1, t) || __tg_type(e2, t) || __tg_type(e3, t))
#define __tg_type_corr(e1, e2, e3, t) \
(__tg_type3(e1, e2, e3, t) || __tg_type3(e1, e2, e3, t complex))
(__tg_type3(e1, e2, e3, t) || __tg_type3(e1, e2, e3, t _Complex))
#define __tg_integer(e1, e2, e3) \
(((__typeof__(e1))1.5 == 1) || ((__typeof__(e2))1.5 == 1) || \
((__typeof__(e3))1.5 == 1))
#define __tg_is_complex(e1, e2, e3) \
(__tg_type3(e1, e2, e3, float complex) || \
__tg_type3(e1, e2, e3, double complex) || \
__tg_type3(e1, e2, e3, long double complex))
(__tg_type3(e1, e2, e3, float _Complex) || \
__tg_type3(e1, e2, e3, double _Complex) || \
__tg_type3(e1, e2, e3, long double _Complex))
#define __tg_impl_simple(x, y, z, fn, fnf, fnl, ...) \
__builtin_choose_expr(__tg_type_corr(x, y, z, long double), \