libpostproc: silence valgrind/fate warning about using uninitialized data
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
67607e20e8
commit
a2f7314ba2
@ -3216,17 +3216,19 @@ static inline void RENAME(duplicate)(uint8_t src[], int stride)
|
||||
#if TEMPLATE_PP_MMX
|
||||
__asm__ volatile(
|
||||
"movq (%0), %%mm0 \n\t"
|
||||
"movq %%mm0, (%0, %1, 4) \n\t"
|
||||
"add %1, %0 \n\t"
|
||||
"movq %%mm0, (%0) \n\t"
|
||||
"movq %%mm0, (%0, %1) \n\t"
|
||||
"movq %%mm0, (%0, %1, 2) \n\t"
|
||||
"movq %%mm0, (%0, %1, 4) \n\t"
|
||||
: "+r" (src)
|
||||
: "r" ((x86_reg)-stride)
|
||||
);
|
||||
#else
|
||||
int i;
|
||||
uint8_t *p=src;
|
||||
for(i=0; i<3; i++){
|
||||
for(i=0; i<5; i++){
|
||||
p-= stride;
|
||||
memcpy(p, src, 8);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user