# HG changeset patch # User lu_zero # Date 1229165554 0 # Node ID cfa400ec2a755da03998a39569e7d0336704df91 # Parent 4e58133ef122a43400d5c51a7e38f858cbe678a2 Cleanup types diff -r 4e58133ef122 -r cfa400ec2a75 ppc/imgresample_altivec.c --- a/ppc/imgresample_altivec.c Sat Dec 13 10:49:38 2008 +0000 +++ b/ppc/imgresample_altivec.c Sat Dec 13 10:52:34 2008 +0000 @@ -28,14 +28,9 @@ #define FILTER_BITS 8 typedef union { - vector unsigned char v; - unsigned char c[16]; -} vec_uc_t; - -typedef union { vector signed short v; signed short s[8]; -} vec_ss_t; +} vec_ss; void v_resample16_altivec(uint8_t *dst, int dst_width, const uint8_t *src, int wrap, int16_t *filter) @@ -43,7 +38,7 @@ int sum, i; const uint8_t *s; vector unsigned char *tv, tmp, dstv, zero; - vec_ss_t srchv[4], srclv[4], fv[4]; + vec_ss srchv[4], srclv[4], fv[4]; vector signed short zeros, sumhv, sumlv; s = src;