This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Altivec and GCC
- From: Segher Boessenkool <segher at kernel dot crashing dot org>
- To: Aren Villanueva <aren at indigo-designs dot info>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Sun, 22 Oct 2006 23:53:20 +0200
- Subject: Re: Altivec and GCC
- References: <F093D53C-B573-44CF-ACB4-4895A2F966F2@indigo-designs.info>
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