summaryrefslogtreecommitdiffstats
path: root/mpeglib/lib/mpegplay/copyFunctions_mmx.h
blob: 36e157be2fd39b0589126899a4c5ce3a806e7da9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
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