This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: __builtin_generic
- From: Falk Hueffner <falk dot hueffner at student dot uni-tuebingen dot de>
- To: "Kean Johnston" <jkj at sco dot com>
- Cc: <gcc at gcc dot gnu dot org>
- Date: 04 Apr 2003 18:39:44 +0200
- Subject: Re: __builtin_generic
- References: <046901c2fa48$27483c70$03419384@shrike>
"Kean Johnston" <jkj at sco dot com> writes:
> I doubt I explained this propperly so consider this
> example:
>
> __builtin_generic (x, "ld:cosld;f:cosf;:cos");
>
> If 'x' is of type long double ("ld"), then cosld() will be
> called. If it is of type float ("f") then cosf() will be
> called. Otherwise, for any other type, simple cos() will be called.
Thhis should be doable with __builtin_types_compatible_p, which
already exists in recent gccs.
--
Falk