Revision aab34ca0 libavcodec/ppc/idct_altivec.c

View differences:

libavcodec/ppc/idct_altivec.c
44 44
#include "dsputil_altivec.h"
45 45

  
46 46
#define vector_s16_t vector signed short
47
#define const_vector_s16_t const_vector signed short
47 48
#define vector_u16_t vector unsigned short
48 49
#define vector_s8_t vector signed char
49 50
#define vector_u8_t vector unsigned char
......
155 156
    vx7 = vec_sra (vy7, shift);
156 157

  
157 158

  
158
static const vector_s16_t constants[5] = {
159
static const_vector_s16_t constants[5] = {
159 160
    (vector_s16_t) AVV(23170, 13573, 6518, 21895, -23170, -21895, 32, 31),
160 161
    (vector_s16_t) AVV(16384, 22725, 21407, 19266, 16384, 19266, 21407, 22725),
161 162
    (vector_s16_t) AVV(22725, 31521, 29692, 26722, 22725, 26722, 29692, 31521),
......
174 175
#else /* ALTIVEC_USE_REFERENCE_C_CODE */
175 176
    vector_u8_t tmp;
176 177

  
178
#ifdef POWERPC_PERFORMANCE_REPORT
177 179
POWERPC_PERF_START_COUNT(altivec_idct_put_num, 1);
178

  
180
#endif
179 181
    IDCT
180 182

  
181 183
#define COPY(dest,src)						\
......
211 213
    vector_u8_t perm1;
212 214
    vector_u8_t p0, p1, p;
213 215

  
216
#ifdef POWERPC_PERFORMANCE_REPORT
214 217
POWERPC_PERF_START_COUNT(altivec_idct_add_num, 1);
218
#endif
215 219

  
216 220
    IDCT
217 221

  

Also available in: Unified diff