|
|
|
@ -105,7 +105,7 @@ try to unroll inner for(x=0 ... loop to avoid these damn if(x ... checks |
|
|
|
|
#define TEMP_STRIDE 8 |
|
|
|
|
//#define NUM_BLOCKS_AT_ONCE 16 //not used yet
|
|
|
|
|
|
|
|
|
|
#if defined(ARCH_X86) || defined(ARCH_X86_64) |
|
|
|
|
#if defined(ARCH_X86) |
|
|
|
|
static uint64_t __attribute__((aligned(8))) attribute_used w05= 0x0005000500050005LL; |
|
|
|
|
static uint64_t __attribute__((aligned(8))) attribute_used w04= 0x0004000400040004LL; |
|
|
|
|
static uint64_t __attribute__((aligned(8))) attribute_used w20= 0x0020002000200020LL; |
|
|
|
@ -156,7 +156,7 @@ static const char *replaceTable[]= |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#if defined(ARCH_X86) || defined(ARCH_X86_64) |
|
|
|
|
#if defined(ARCH_X86) |
|
|
|
|
static inline void prefetchnta(void *p) |
|
|
|
|
{ |
|
|
|
|
asm volatile( "prefetchnta (%0)\n\t" |
|
|
|
@ -581,7 +581,7 @@ static always_inline void do_a_deblock_C(uint8_t *src, int step, int stride, PPC |
|
|
|
|
#endif //HAVE_ALTIVEC
|
|
|
|
|
#endif //ARCH_POWERPC
|
|
|
|
|
|
|
|
|
|
#if defined(ARCH_X86) || defined(ARCH_X86_64) |
|
|
|
|
#if defined(ARCH_X86) |
|
|
|
|
|
|
|
|
|
#if (defined (HAVE_MMX) && !defined (HAVE_3DNOW) && !defined (HAVE_MMX2)) || defined (RUNTIME_CPUDETECT) |
|
|
|
|
#define COMPILE_MMX |
|
|
|
@ -594,7 +594,7 @@ static always_inline void do_a_deblock_C(uint8_t *src, int step, int stride, PPC |
|
|
|
|
#if (defined (HAVE_3DNOW) && !defined (HAVE_MMX2)) || defined (RUNTIME_CPUDETECT) |
|
|
|
|
#define COMPILE_3DNOW |
|
|
|
|
#endif |
|
|
|
|
#endif /* defined(ARCH_X86) || defined(ARCH_X86_64) */ |
|
|
|
|
#endif /* defined(ARCH_X86) */ |
|
|
|
|
|
|
|
|
|
#undef HAVE_MMX |
|
|
|
|
#undef HAVE_MMX2 |
|
|
|
@ -662,7 +662,7 @@ static inline void postProcess(uint8_t src[], int srcStride, uint8_t dst[], int |
|
|
|
|
// difference wouldnt be messureable here but its much better because
|
|
|
|
|
// someone might exchange the cpu whithout restarting mplayer ;)
|
|
|
|
|
#ifdef RUNTIME_CPUDETECT |
|
|
|
|
#if defined(ARCH_X86) || defined(ARCH_X86_64) |
|
|
|
|
#if defined(ARCH_X86) |
|
|
|
|
// ordered per speed fasterst first
|
|
|
|
|
if(c->cpuCaps & PP_CPU_CAPS_MMX2) |
|
|
|
|
postProcess_MMX2(src, srcStride, dst, dstStride, width, height, QPs, QPStride, isColor, c); |
|
|
|
|