This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
compiling for PowerPc using Altivec
- From: Eyal Bagon <eyal at mobileye dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Tue, 23 Jul 2002 16:19:44 +0300
- Subject: compiling for PowerPc using Altivec
- Organization: mobileye
hello
Im' trying to compile Altivec code with gcc-3.1 and I have the following
problems:
1) How do I declare const __vector ... - what do I do with the const ?
- is there a way to declare a constant vector pointer ?
2) how can I initialize a vector ? - I used to do this :
__vector signed int intVec = (__vector signed int)(0,0,0,0);
but apparently this doesn't work with gcc-3.1 , how can I do this ?
Eyal