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?



On Thursday, February 21, 2002, at 08:52  PM, Daniel Egger wrote:

> Am Don, 2002-02-21 um 08.49 schrieb Aldy Hernandez:
>
>> __ALTIVEC__
>
>> but you have to include <altivec.h>
>
> But I can only include <altivec.h> if I have a capable compiler.
> That's not going to work as it's a chicken egg problem.

yeah, so download cvs gcc, build it and then use the resulting
compiler to compile your code (which should include <altivec.h>)

> I've only seen cplusplus code in there. How do I utilize altivec from
> C without using builtins?

same way.  include <altivec.h>.  there's magic there to know if
it's C or C++.

altivec builtins are evil.

>
> --
> Servus,
>        Daniel
>
>
--
Aldy Hernandez                                E-mail: aldyh@redhat.com
Professional Gypsy Lost in Australia
Red Hat, Inc.


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