altivec amusement
Aldy Hernandez
aldyh@redhat.com
Mon Feb 25 01:00:00 GMT 2002
[let's ask joseph about this one]
found the problem.
the moto specs are so vague... they're not helpful. this
is a case of "eeech, you may be right, i may be right".
[snip]
vector unsigned char high_products[256];
[snip]
low = vec_ldl((int) *(inp++),high_products);
replace the high_products in the call to vec_ldl with:
(vector unsigned char *)high_products
vec_ldl is expecting a "vector unsigned char *" in the second
argument, not a "vector unsigned char []".
joseph, it seems __builtin_types_equal differentiates between
int foo[]
and
int *foo
so what brad is trying to do won't work.
is __builtin_types_equal doing the right thing?
--
Aldy Hernandez E-mail: aldyh@redhat.com
Professional Gypsy Lost in Australia
Red Hat, Inc.
More information about the Gcc
mailing list