This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: __builtin_generic


"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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]