This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: new __builtin_choose_type (patch) (new builtin_equal_types patch)
On Wed, Oct 03, 2001 at 11:19:45PM -0400, Aldy Hernandez wrote:
> + __builtin_equal_types (X, cd) \
> + ? atan_complex_double (X) \
> + : __builtin_equal_types (X, f) \
> + ? atan_float (X) \
> + /* Assume or convert to double. */ \
> + : atan_double ((double) X); })
Incidentally, this example is wrong. The result of the ?: operator
is promoted.
r~