From d893a489d620bb3bca9c0c4b90ef162b95180613 Mon Sep 17 00:00:00 2001 From: Ari Koivula Date: Fri, 10 Oct 2014 15:12:29 +0300 Subject: [PATCH] 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. --- src/strategies/avx2/dct-avx2.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/strategies/avx2/dct-avx2.c b/src/strategies/avx2/dct-avx2.c index 5038e441..8e85b66d 100644 --- a/src/strategies/avx2/dct-avx2.c +++ b/src/strategies/avx2/dct-avx2.c @@ -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);\