Fix mingw compilation issue.

strategies/avx2/dct-avx2.c:334:25: error: pasting "g_dct_16" and "[" does
not give a valid preprocessing token

- The [ is not part of the token so compilation failed on mingw GCC 4.9.1.
- Fixes #86.
This commit is contained in:
Ari Koivula 2014-10-10 15:12:29 +03:00
parent 3868cc7ff1
commit d893a489d6

View file

@ -315,7 +315,7 @@ static void mul_clip_matrix_32x32_avx2(const int16_t *left, const int16_t *right
int32_t shift_2nd = g_convert_to_bit[n] + 8; \
int16_t tmp[n * n];\
const int16_t *tdct = &g_ ## type ## _ ## n ## _t[0][0];\
const int16_t *dct = &g_ ## type ## _ ## n ## [0][0];\
const int16_t *dct = &g_ ## type ## _ ## n [0][0];\
\
mul_clip_matrix_ ## n ## x ## n ## _avx2(input, tdct, tmp, shift_1st);\
mul_clip_matrix_ ## n ## x ## n ## _avx2(dct, tmp, output, shift_2nd);\
@ -331,7 +331,7 @@ static void matrix_i ## type ## _## n ## x ## n ## _avx2(int8_t bitdepth, const
int32_t shift_2nd = 12 - (bitdepth - 8); \
int16_t tmp[n * n];\
const int16_t *tdct = &g_ ## type ## _ ## n ## _t[0][0];\
const int16_t *dct = &g_ ## type ## _ ## n ## [0][0];\
const int16_t *dct = &g_ ## type ## _ ## n [0][0];\
\
mul_clip_matrix_ ## n ## x ## n ## _avx2(tdct, input, tmp, shift_1st);\
mul_clip_matrix_ ## n ## x ## n ## _avx2(tmp, dct, output, shift_2nd);\