[cfe-dev] On which option should vector operator ? : depend?

Douglas Gregor dgregor at apple.com
Mon Sep 27 11:03:41 PDT 2010


On Sep 22, 2010, at 1:09 AM, Jochen Wilhelmy wrote:

> Hi!
> 
> I have a new idea: the vector operator ? : should depend on no option at 
> all,
> because options like Altivec or OpenCL enable language extensions.
> But vectors are created using e.g.
> typedef float __attribute__((ext_vector_type(4))) float4;
> Therefore if you have some vectors the operators +, -, *, / work and also
> the operator ? : should work.

I think it's perfectly reasonable for ? : to work on vectors, even if neither Altivec nor OpenCL are enabled.

	- Doug



More information about the cfe-dev mailing list