AltiVec too pedantic about type qualifiers [UPDATE]
Daniel Egger
degger@fhm.edu
Mon Feb 25 05:39:00 GMT 2002
Am Mon, 2002-02-25 um 03.03 schrieb Aldy Hernandez:
> first, vec_lvsl accepts "char *" not "const char *", so you'll
> have to cast.
That's about the most annoying thing. What's wrong about loading
from a constant address?
> second, and most importantly, the altivec specs say that
> vec_lvsl() returns a "vector unsigned char" for any of its
> variants... so you'll have to cast the return to "vector signed
> char". gcc will not do the conversion for you like with
> scalars of signed int/unsigned int.
Yes, that was just a cut-n-pasto in the example.
--
Servus,
Daniel
More information about the Gcc
mailing list