Altivec conditional?

Aldy Hernandez aldyh@redhat.com
Wed Feb 20 23:50:00 GMT 2002


>>>>> "Daniel" == Daniel Egger <degger@fhm.edu> writes:

 > Hija,
 > I may probably find something in the source after hours of digging but
 > probably someone here knows it already. How can I distinguish between 
 > a GCC having the new altivec builtins and one that has not, i.e. is
 > there some preprocessor symbol defined?

__ALTIVEC__

but you have to include <altivec.h>

 > I'd really like to cease my C/__asm__ development and use the builtins
 > when possible. I also might create a GCC-Altivec-FAQ with the
 > experience

the builtins are not supported.  Use the convenience macros (and
overloaded C++ functions) defined in <altivec.h>.

*DON'T* use the builtins.  The macros are prettier, and i hope to get
 rid of the builtins one day...

 > gained from being one of the first ones trying to use it productively.
 > :)

that would be much appreciated

 > -- 
 > Servus,
 >        Daniel



More information about the Gcc mailing list