This is the mail archive of the gcc-help@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: Altivec and GCC


When I try to define a vector:

vector float vec1 = (vector float)(1.0, 1.0, 1.0, 1.0);

and try to compile it, i get a "can't convert between vector values of different size"

1.0 is a double, 1.0f is a float.


HTH,


Segher



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