mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
2a88d989cb
--HG-- rename : media/libtheora/lib/dec/apiwrapper.c => media/libtheora/lib/apiwrapper.c rename : media/libtheora/lib/dec/apiwrapper.h => media/libtheora/lib/apiwrapper.h rename : media/libtheora/lib/dec/bitpack.c => media/libtheora/lib/bitpack.c rename : media/libtheora/lib/dec/bitpack.h => media/libtheora/lib/bitpack.h rename : media/libtheora/lib/dec/dct.h => media/libtheora/lib/dct.h rename : media/libtheora/lib/dec/decapiwrapper.c => media/libtheora/lib/decapiwrapper.c rename : media/libtheora/lib/dec/decinfo.c => media/libtheora/lib/decinfo.c rename : media/libtheora/lib/dec/decint.h => media/libtheora/lib/decint.h rename : media/libtheora/lib/dec/decode.c => media/libtheora/lib/decode.c rename : media/libtheora/lib/dec/dequant.c => media/libtheora/lib/dequant.c rename : media/libtheora/lib/dec/dequant.h => media/libtheora/lib/dequant.h rename : media/libtheora/lib/dec/fragment.c => media/libtheora/lib/fragment.c rename : media/libtheora/lib/dec/huffdec.c => media/libtheora/lib/huffdec.c rename : media/libtheora/lib/dec/huffdec.h => media/libtheora/lib/huffdec.h rename : media/libtheora/lib/dec/huffman.h => media/libtheora/lib/huffman.h rename : media/libtheora/lib/dec/idct.c => media/libtheora/lib/idct.c rename : media/libtheora/lib/dec/info.c => media/libtheora/lib/info.c rename : media/libtheora/lib/dec/internal.c => media/libtheora/lib/internal.c rename : media/libtheora/lib/dec/ocintrin.h => media/libtheora/lib/ocintrin.h rename : media/libtheora/lib/dec/quant.c => media/libtheora/lib/quant.c rename : media/libtheora/lib/dec/quant.h => media/libtheora/lib/quant.h rename : media/libtheora/lib/dec/state.c => media/libtheora/lib/state.c rename : media/libtheora/lib/dec/x86/mmxfrag.c => media/libtheora/lib/x86/mmxfrag.c rename : media/libtheora/lib/dec/x86/mmxidct.c => media/libtheora/lib/x86/mmxidct.c rename : media/libtheora/lib/dec/x86/mmxstate.c => media/libtheora/lib/x86/mmxstate.c rename : media/libtheora/lib/dec/x86/x86int.h => media/libtheora/lib/x86/x86int.h rename : media/libtheora/lib/dec/x86/x86state.c => media/libtheora/lib/x86/x86state.c rename : media/libtheora/lib/dec/x86_vc/mmxfrag.c => media/libtheora/lib/x86_vc/mmxfrag.c rename : media/libtheora/lib/dec/x86_vc/mmxidct.c => media/libtheora/lib/x86_vc/mmxidct.c rename : media/libtheora/lib/dec/x86_vc/mmxstate.c => media/libtheora/lib/x86_vc/mmxstate.c rename : media/libtheora/lib/dec/x86_vc/x86int.h => media/libtheora/lib/x86_vc/x86int.h rename : media/libtheora/lib/dec/x86_vc/x86state.c => media/libtheora/lib/x86_vc/x86state.c
62 lines
1.6 KiB
C
62 lines
1.6 KiB
C
#if !defined(_x86_vc_mmxfrag_H)
|
|
# define _x86_vc_mmxfrag_H (1)
|
|
# include <stddef.h>
|
|
# include "x86int.h"
|
|
|
|
#if defined(OC_X86_ASM)
|
|
|
|
/*Copies an 8x8 block of pixels from _src to _dst, assuming _ystride bytes
|
|
between rows.*/
|
|
#define OC_FRAG_COPY_MMX(_dst,_src,_ystride) \
|
|
do{ \
|
|
const unsigned char *src; \
|
|
unsigned char *dst; \
|
|
src=(_src); \
|
|
dst=(_dst); \
|
|
__asm mov SRC,src \
|
|
__asm mov DST,dst \
|
|
__asm mov YSTRIDE,_ystride \
|
|
/*src+0*ystride*/ \
|
|
__asm movq mm0,[SRC] \
|
|
/*src+1*ystride*/ \
|
|
__asm movq mm1,[SRC+YSTRIDE] \
|
|
/*ystride3=ystride*3*/ \
|
|
__asm lea YSTRIDE3,[YSTRIDE+YSTRIDE*2] \
|
|
/*src+2*ystride*/ \
|
|
__asm movq mm2,[SRC+YSTRIDE*2] \
|
|
/*src+3*ystride*/ \
|
|
__asm movq mm3,[SRC+YSTRIDE3] \
|
|
/*dst+0*ystride*/ \
|
|
__asm movq [DST],mm0 \
|
|
/*dst+1*ystride*/ \
|
|
__asm movq [DST+YSTRIDE],mm1 \
|
|
/*Pointer to next 4.*/ \
|
|
__asm lea SRC,[SRC+YSTRIDE*4] \
|
|
/*dst+2*ystride*/ \
|
|
__asm movq [DST+YSTRIDE*2],mm2 \
|
|
/*dst+3*ystride*/ \
|
|
__asm movq [DST+YSTRIDE3],mm3 \
|
|
/*Pointer to next 4.*/ \
|
|
__asm lea DST,[DST+YSTRIDE*4] \
|
|
/*src+0*ystride*/ \
|
|
__asm movq mm0,[SRC] \
|
|
/*src+1*ystride*/ \
|
|
__asm movq mm1,[SRC+YSTRIDE] \
|
|
/*src+2*ystride*/ \
|
|
__asm movq mm2,[SRC+YSTRIDE*2] \
|
|
/*src+3*ystride*/ \
|
|
__asm movq mm3,[SRC+YSTRIDE3] \
|
|
/*dst+0*ystride*/ \
|
|
__asm movq [DST],mm0 \
|
|
/*dst+1*ystride*/ \
|
|
__asm movq [DST+YSTRIDE],mm1 \
|
|
/*dst+2*ystride*/ \
|
|
__asm movq [DST+YSTRIDE*2],mm2 \
|
|
/*dst+3*ystride*/ \
|
|
__asm movq [DST+YSTRIDE3],mm3 \
|
|
} \
|
|
while(0)
|
|
|
|
# endif
|
|
#endif
|