This is the mail archive of the gcc@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 conditional?


>>>>> "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


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