comparison libmpcodecs/vf_pp7.c @ 15962:08338441314b

#ifdef HAVE_MMX
author michael
date Mon, 11 Jul 2005 10:21:14 +0000
parents 1a0c715343d2
children 6ca3e46894b6
comparison
equal deleted inserted replaced
15961:9f708f9e185b 15962:08338441314b
150 src++; 150 src++;
151 dst++; 151 dst++;
152 } 152 }
153 } 153 }
154 154
155 #ifdef HAVE_MMX
155 static void dctB_mmx(DCTELEM *dst, DCTELEM *src){ 156 static void dctB_mmx(DCTELEM *dst, DCTELEM *src){
156 asm volatile ( 157 asm volatile (
157 "movq (%0), %%mm0 \n\t" 158 "movq (%0), %%mm0 \n\t"
158 "movq 1*4*2(%0), %%mm1 \n\t" 159 "movq 1*4*2(%0), %%mm1 \n\t"
159 "paddw 6*4*2(%0), %%mm0 \n\t" 160 "paddw 6*4*2(%0), %%mm0 \n\t"
181 "movq %%mm2, 1*4*2(%1) \n\t" 182 "movq %%mm2, 1*4*2(%1) \n\t"
182 "movq %%mm3, 3*4*2(%1) \n\t" 183 "movq %%mm3, 3*4*2(%1) \n\t"
183 :: "r" (src), "r"(dst) 184 :: "r" (src), "r"(dst)
184 ); 185 );
185 } 186 }
187 #endif
186 188
187 static void (*dctB)(DCTELEM *dst, DCTELEM *src)= dctB_c; 189 static void (*dctB)(DCTELEM *dst, DCTELEM *src)= dctB_c;
188 190
189 #define N0 4 191 #define N0 4
190 #define N1 5 192 #define N1 5