[cfe-dev] vector constructors

Jochen Wilhelmy j.wilhelmy at arcor.de
Wed Mar 17 10:09:55 PDT 2010


while being allowed to write float4(1,2,3,4) would be deluxe-support that
I know from graphics-centric compilers I found another way: e.g.
float4 makeFloat4(float a, float b, float c, float d){return (float4)(a, 
b, c, d);}

this can look the same from the outside if no vector support is 
available and
float4 is a struct with no constructors.

-Jochen




More information about the cfe-dev mailing list