MOVNTQ " %%mm5, 8 (%3);"  : : "r" (_py), "r" (_pu), "r" (_pv), "r" (_image));  _py += 8; _pu += 4; _pv += 4; _image += 16; }  if (!even) { pu += uv_stride; pv += uv_stride; }  py += y_stride; image += rgb_stride;  even = (!even);
MOVNTQ " %%mm5, 8 (%1);"   "addl $16, %1			\n\t" "addl $4, %0			\n\t" " js 1b				\n\t"  : "+r" (index), "+r" (_image) : "r" (_pu - index), "r" (_pv - index), "r"(&c->redDither), "r" (_py - 2*index) );
static inline void RENAME(yuv420_rgb16) (uint8_t * image, uint8_t * py,			      uint8_t * pu, uint8_t * pv,			      unsigned h_size, unsigned v_size,			      int rgb_stride, int y_stride, int uv_stride){    int even = 1;    int x, y;    __asm__ __volatile__ ("pxor %mm4, %mm4;" /* zero mm4 */ );    for (y = v_size; --y >= 0; ) {	uint8_t *_image = image;	uint8_t *_py = py;	uint8_t *_pu = pu;	uint8_t *_pv = pv;	int internal_h_size= h_size;	int aligned_h_size= (h_size+7)&~7;	if(rgb_stride >= aligned_h_size*2) internal_h_size= aligned_h_size;	b5Dither= dither8[y&1];	g6Dither= dither4[y&1];	g5Dither= dither8[y&1];	r5Dither= dither8[(y+1)&1];	/* load data for start of next scan line */	__asm__ __volatile__ (		 "movd (%1), %%mm0;" /* Load 4 Cb 00 00 00 00 u3 u2 u1 u0 */		 "movd (%2), %%mm1;" /* Load 4 Cr 00 00 00 00 v3 v2 v1 v0 */		 "movq (%0), %%mm6;" /* Load 8  Y Y7 Y6 Y5 Y4 Y3 Y2 Y1 Y0 */		 : : "r" (_py), "r" (_pu), "r" (_pv));	for (x = internal_h_size >> 3; --x >= 0; ) {	    /* this mmx assembly code deals with SINGLE scan line at a time, it convert 8	       pixels in each iteration */	    __asm__ __volatile__ (/* no speed diference on my p3@500 with prefetch, * if it is faster for anyone with -benchmark then tell me			PREFETCH" 64(%0) \n\t"			PREFETCH" 64(%1) \n\t"			PREFETCH" 64(%2) \n\t"*/YUV2RGB#ifdef DITHER1XBPP			"paddusb "MANGLE(b5Dither)", %%mm0;"			"paddusb "MANGLE(g6Dither)", %%mm2;"			"paddusb "MANGLE(r5Dither)", %%mm1;"#endif		     /* mask unneeded bits off */		     "pand "MANGLE(mmx_redmask)", %%mm0;" /* b7b6b5b4 b3_0_0_0 b7b6b5b4 b3_0_0_0 */		     "pand "MANGLE(mmx_grnmask)", %%mm2;" /* g7g6g5g4 g3g2_0_0 g7g6g5g4 g3g2_0_0 */		     "pand "MANGLE(mmx_redmask)", %%mm1;" /* r7r6r5r4 r3_0_0_0 r7r6r5r4 r3_0_0_0 */		     "psrlw $3,%%mm0;" /* 0_0_0_b7 b6b5b4b3 0_0_0_b7 b6b5b4b3 */		     "pxor %%mm4, %%mm4;" /* zero mm4 */		     "movq %%mm0, %%mm5;" /* Copy B7-B0 */		     "movq %%mm2, %%mm7;" /* Copy G7-G0 */		     /* convert rgb24 plane to rgb16 pack for pixel 0-3 */		     "punpcklbw %%mm4, %%mm2;" /* 0_0_0_0 0_0_0_0 g7g6g5g4 g3g2_0_0 */		     "punpcklbw %%mm1, %%mm0;" /* r7r6r5r4 r3_0_0_0 0_0_0_b7 b6b5b4b3 */		     "psllw $3, %%mm2;" /* 0_0_0_0 0_g7g6g5 g4g3g2_0 0_0_0_0 */		     "por %%mm2, %%mm0;" /* r7r6r5r4 r3g7g6g5 g4g3g2b7 b6b5b4b3 */		     "movq 8 (%0), %%mm6;" /* Load 8 Y Y7 Y6 Y5 Y4 Y3 Y2 Y1 Y0 */		     MOVNTQ " %%mm0, (%3);" /* store pixel 0-3 */		     /* convert rgb24 plane to rgb16 pack for pixel 0-3 */		     "punpckhbw %%mm4, %%mm7;" /* 0_0_0_0 0_0_0_0 g7g6g5g4 g3g2_0_0 */		     "punpckhbw %%mm1, %%mm5;" /* r7r6r5r4 r3_0_0_0 0_0_0_b7 b6b5b4b3 */		     "psllw $3, %%mm7;" /* 0_0_0_0 0_g7g6g5 g4g3g2_0 0_0_0_0 */		     "movd 4 (%1), %%mm0;" /* Load 4 Cb 00 00 00 00 u3 u2 u1 u0 */		     "por %%mm7, %%mm5;" /* r7r6r5r4 r3g7g6g5 g4g3g2b7 b6b5b4b3 */		     "movd 4 (%2), %%mm1;" /* Load 4 Cr 00 00 00 00 v3 v2 v1 v0 */		     MOVNTQ " %%mm5, 8 (%3);" /* store pixel 4-7 */		     : : "r" (_py), "r" (_pu), "r" (_pv), "r" (_image));	    _py += 8;	    _pu += 4;	    _pv += 4;	    _image += 16;	}	if (!even) {	    pu += uv_stride;	    pv += uv_stride;	}	py += y_stride;	image += rgb_stride;	even = (!even);    }    __asm__ __volatile__ (EMMS);}