This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Altivec conditional?
- From: Aldy Hernandez <aldyh at redhat dot com>
- To: Daniel Egger <degger at fhm dot edu>
- Cc: GCC Developer Mailinglist <gcc at gcc dot gnu dot org>
- Date: 21 Feb 2002 18:49:14 +1100
- Subject: Re: Altivec conditional?
- References: <1014203671.23903.5.camel@sonja>
>>>>> "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