gcc 3.2 altivec options and glibc
Geoff Keating
geoffk@geoffk.org
Tue Aug 27 10:17:00 GMT 2002
Daniel Egger <degger@fhm.edu> writes:
> > Besides that, all vector instruction sets can at least be used for memset.
>
> You can use it for anything but performance will likely suck for a large
> amount of unaligned memory accesses which is what you'll most likely get
> with standard functions.
That's not quite how it works. glibc's current memset for powerpc
(which doesn't rely on the presence of altivec) is actually very
similar to what you'd write using a vector instruction set, except
that it deals with data in 32-bit chunks instead of 128-bit.
--
- Geoffrey Keating <geoffk@geoffk.org> <geoffk@redhat.com>
More information about the Gcc
mailing list