MIPS: move WORK_AROUND_GCC define to appropriate place

Change-Id: I3055eca57dc4e9d39533a5b8170bbf7af9cd818f
This commit is contained in:
Djordje Pesut 2015-01-08 15:55:41 +01:00
parent 012d2c60fa
commit a28c4b363d
3 changed files with 14 additions and 17 deletions

View File

@ -21,10 +21,6 @@
#include "../enc/vp8enci.h"
#include "../enc/cost.h"
#if defined(__GNUC__) && defined(__ANDROID__) && LOCAL_GCC_VERSION == 0x409
#define WORK_AROUND_GCC
#endif
static const int kC1 = 20091 + (1 << 16);
static const int kC2 = 35468;
@ -630,6 +626,8 @@ int VP8GetResidualCostMIPS32(int ctx0, const VP8Residual* const res) {
return cost;
}
#if !defined(WORK_AROUND_GCC)
#define GET_SSE_INNER(A, B, C, D) \
"lbu %[temp0], "#A"(%[a]) \n\t" \
"lbu %[temp1], "#A"(%[b]) \n\t" \
@ -654,7 +652,6 @@ int VP8GetResidualCostMIPS32(int ctx0, const VP8Residual* const res) {
GET_SSE_INNER(C, C + 1, C + 2, C + 3) \
GET_SSE_INNER(D, D + 1, D + 2, D + 3)
#if !defined(WORK_AROUND_GCC)
static int SSE16x16(const uint8_t* a, const uint8_t* b) {
int count;
int temp0, temp1, temp2, temp3, temp4, temp5, temp6, temp7;
@ -756,10 +753,10 @@ static int SSE4x4(const uint8_t* a, const uint8_t* b) {
return count;
}
#endif // WORK_AROUND_GCC
#undef GET_SSE
#undef GET_SSE_INNER
#undef GET_SSE_MIPS32
#undef GET_SSE_MIPS32_INNER
#endif // !WORK_AROUND_GCC
#endif // WEBP_USE_MIPS32

View File

@ -20,10 +20,6 @@
#include "../enc/cost.h"
#include "../enc/vp8enci.h"
#if defined(__GNUC__) && defined(__ANDROID__) && LOCAL_GCC_VERSION == 0x409
#define WORK_AROUND_GCC
#endif
static const int kC1 = 20091 + (1 << 16);
static const int kC2 = 35468;
@ -1169,7 +1165,7 @@ static int SSE4x4(const uint8_t* a, const uint8_t* b) {
#undef GET_SSE
#undef GET_SSE_INNER
#endif // WORK_AROUND_GCC
#endif // !WORK_AROUND_GCC
#undef FILL_8_OR_16
#undef FILL_PART

View File

@ -12,6 +12,10 @@
#ifndef WEBP_DSP_MIPS_MACRO_H_
#define WEBP_DSP_MIPS_MACRO_H_
#if defined(__GNUC__) && defined(__ANDROID__) && LOCAL_GCC_VERSION == 0x409
#define WORK_AROUND_GCC
#endif
#define STR(s) #s
#define XSTR(s) STR(s)