Replace "vector const" by "const vector" otherwise gcc 4.6.0 fails.
Given that this compiles fine with the Apple compiler that is probably a gcc bug, but "const vector" is nicer anyway.
This commit is contained in:
parent
3379531c40
commit
3c194f390f
@ -298,7 +298,7 @@ static int altivec_##name (SwsContext *c, \
|
|||||||
vector signed short R1,G1,B1; \
|
vector signed short R1,G1,B1; \
|
||||||
vector unsigned char R,G,B; \
|
vector unsigned char R,G,B; \
|
||||||
\
|
\
|
||||||
vector const unsigned char *y1ivP, *y2ivP, *uivP, *vivP; \
|
const vector unsigned char *y1ivP, *y2ivP, *uivP, *vivP; \
|
||||||
vector unsigned char align_perm; \
|
vector unsigned char align_perm; \
|
||||||
\
|
\
|
||||||
vector signed short \
|
vector signed short \
|
||||||
@ -335,10 +335,10 @@ static int altivec_##name (SwsContext *c, \
|
|||||||
\
|
\
|
||||||
for (j=0;j<w/16;j++) { \
|
for (j=0;j<w/16;j++) { \
|
||||||
\
|
\
|
||||||
y1ivP = (vector const unsigned char *)y1i; \
|
y1ivP = (const vector unsigned char *)y1i; \
|
||||||
y2ivP = (vector const unsigned char *)y2i; \
|
y2ivP = (const vector unsigned char *)y2i; \
|
||||||
uivP = (vector const unsigned char *)ui; \
|
uivP = (const vector unsigned char *)ui; \
|
||||||
vivP = (vector const unsigned char *)vi; \
|
vivP = (const vector unsigned char *)vi; \
|
||||||
\
|
\
|
||||||
align_perm = vec_lvsl (0, y1i); \
|
align_perm = vec_lvsl (0, y1i); \
|
||||||
y0 = (vector unsigned char) \
|
y0 = (vector unsigned char) \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user