From mboxrd@z Thu Jan 1 00:00:00 1970 From: Richard Henderson To: Aldy Hernandez Cc: Magnus Fromreide , gcc@gcc.gnu.org Subject: Re: new __builtin_choose_type (patch) (new builtin_equal_types patch) Date: Fri, 05 Oct 2001 16:04:00 -0000 Message-id: <20011005160439.B11260@redhat.com> References: <1002165585.31345.173.camel@culebra.cygnus.com> X-SW-Source: 2001-10/msg00358.html 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~