From e2de64d6f1beb9e492daf5b886e19933c1fa41dd Mon Sep 17 00:00:00 2001 From: toma Date: Wed, 25 Nov 2009 17:56:58 +0000 Subject: Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features. BUG:215923 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdemultimedia@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- mpeglib/lib/mpegplay/copyFunctions_mmx.h | 68 ++++++++++++++++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100644 mpeglib/lib/mpegplay/copyFunctions_mmx.h (limited to 'mpeglib/lib/mpegplay/copyFunctions_mmx.h') diff --git a/mpeglib/lib/mpegplay/copyFunctions_mmx.h b/mpeglib/lib/mpegplay/copyFunctions_mmx.h new file mode 100644 index 00000000..36e157be --- /dev/null +++ b/mpeglib/lib/mpegplay/copyFunctions_mmx.h @@ -0,0 +1,68 @@ +/* + copyfunctions implementation in mmx + Copyright (C) 2000 Martin Vogt + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU Library General Public License as published by + the Free Software Foundation. + + For more information look at the file COPYRIGHT in this package + + */ + + +#ifndef __COPYFUNCTIONS_MMX_H +#define __COPYFUNCTIONS_MMX_H + +#include "copyFunctions_asm.h" +#include "../util/mmx/mmx.h" + + +class CopyFunctions_MMX : public CopyFunctions_ASM { + + int lmmx; + + public: + CopyFunctions_MMX(); + ~CopyFunctions_MMX(); + + int support(); + +#if defined (__GNUC__) && defined (INTEL) + + void startNOFloatSection(); + void endNOFloatSection(); + + + void copy8_byte(unsigned char* source1, + unsigned char* dest,int inc); + + void copy8_src1linear_crop(short* source1, + unsigned char* dest,int inc); + + void copy8_div2_nocrop(unsigned char* source1, + unsigned char* source2, + unsigned char* dest,int inc); + + void copy8_div2_destlinear_nocrop(unsigned char* source1, + unsigned char* source2, + unsigned char* dest,int inc); + + void copy16_div2_destlinear_nocrop(unsigned char* source1, + unsigned char* source2, + unsigned char* dest,int inc); + + void copy8_src2linear_crop(unsigned char* source1, + short int* source2, + unsigned char* dest,int inc); + + void copy8_div2_src3linear_crop(unsigned char* source1, + unsigned char* source2, + short int* source3, + unsigned char* dest,int inc); + +#endif + +}; +#endif + -- cgit v1.2.1