changeset 9668:5a730e38f1b3 libavcodec

Remove useless casts of vec_ld() parameters. Gets rid of 'cast discards qualifiers from pointer target type' warnings.
author diego
date Mon, 18 May 2009 08:21:50 +0000
parents 6f80791c9195
children 09b3564c17e5
files ppc/dsputil_altivec.c
diffstat 1 files changed, 15 insertions(+), 15 deletions(-) [+]
line wrap: on
line diff
--- a/ppc/dsputil_altivec.c	Sun May 17 16:13:03 2009 +0000
+++ b/ppc/dsputil_altivec.c	Mon May 18 08:21:50 2009 +0000
@@ -629,23 +629,23 @@
 // all this is on a 7450, tuning for the 7450
 #if 0
     for (i = 0; i < h; i++) {
-        pixelsv1 = vec_ld(0, (unsigned char*)pixels);
-        pixelsv2 = vec_ld(16, (unsigned char*)pixels);
+        pixelsv1 = vec_ld(0, pixels);
+        pixelsv2 = vec_ld(16, pixels);
         vec_st(vec_perm(pixelsv1, pixelsv2, perm),
-               0, (unsigned char*)block);
+               0, block);
         pixels+=line_size;
         block +=line_size;
     }
 #else
     for (i = 0; i < h; i += 4) {
-        pixelsv1 = vec_ld(0, (unsigned char*)pixels);
-        pixelsv2 = vec_ld(15, (unsigned char*)pixels);
-        pixelsv1B = vec_ld(line_size, (unsigned char*)pixels);
-        pixelsv2B = vec_ld(15 + line_size, (unsigned char*)pixels);
-        pixelsv1C = vec_ld(line_size_2, (unsigned char*)pixels);
-        pixelsv2C = vec_ld(15 + line_size_2, (unsigned char*)pixels);
-        pixelsv1D = vec_ld(line_size_3, (unsigned char*)pixels);
-        pixelsv2D = vec_ld(15 + line_size_3, (unsigned char*)pixels);
+        pixelsv1  = vec_ld( 0, pixels);
+        pixelsv2  = vec_ld(15, pixels);
+        pixelsv1B = vec_ld(line_size, pixels);
+        pixelsv2B = vec_ld(15 + line_size, pixels);
+        pixelsv1C = vec_ld(line_size_2, pixels);
+        pixelsv2C = vec_ld(15 + line_size_2, pixels);
+        pixelsv1D = vec_ld(line_size_3, pixels);
+        pixelsv2D = vec_ld(15 + line_size_3, pixels);
         vec_st(vec_perm(pixelsv1, pixelsv2, perm),
                0, (unsigned char*)block);
         vec_st(vec_perm(pixelsv1B, pixelsv2B, perm),
@@ -673,8 +673,8 @@
 POWERPC_PERF_START_COUNT(altivec_avg_pixels16_num, 1);
 
     for (i = 0; i < h; i++) {
-        pixelsv1 = vec_ld(0, (unsigned char*)pixels);
-        pixelsv2 = vec_ld(16, (unsigned char*)pixels);
+        pixelsv1 = vec_ld( 0, pixels);
+        pixelsv2 = vec_ld(16,pixels);
         blockv = vec_ld(0, block);
         pixelsv = vec_perm(pixelsv1, pixelsv2, perm);
         blockv = vec_avg(blockv,pixelsv);
@@ -701,8 +701,8 @@
        int rightside = ((unsigned long)block & 0x0000000F);
 
        blockv = vec_ld(0, block);
-       pixelsv1 = vec_ld(0, (unsigned char*)pixels);
-       pixelsv2 = vec_ld(16, (unsigned char*)pixels);
+       pixelsv1 = vec_ld( 0, pixels);
+       pixelsv2 = vec_ld(16, pixels);
        pixelsv = vec_perm(pixelsv1, pixelsv2, vec_lvsl(0, pixels));
 
        if (rightside) {