Mercurial > libavutil.hg
annotate x86_cpu.h @ 108:11be8e0d1344 libavutil
Add official LGPL license headers to the files that were missing them.
author | diego |
---|---|
date | Sun, 10 Sep 2006 14:02:42 +0000 |
parents | b47203d3711f |
children | d76a36742464 |
rev | line source |
---|---|
108
11be8e0d1344
Add official LGPL license headers to the files that were missing them.
diego
parents:
93
diff
changeset
|
1 /* |
11be8e0d1344
Add official LGPL license headers to the files that were missing them.
diego
parents:
93
diff
changeset
|
2 * copyright (c) 2006 Michael Niedermayer <michaelni@gmx.at> |
11be8e0d1344
Add official LGPL license headers to the files that were missing them.
diego
parents:
93
diff
changeset
|
3 * |
11be8e0d1344
Add official LGPL license headers to the files that were missing them.
diego
parents:
93
diff
changeset
|
4 * This library is free software; you can redistribute it and/or |
11be8e0d1344
Add official LGPL license headers to the files that were missing them.
diego
parents:
93
diff
changeset
|
5 * modify it under the terms of the GNU Lesser General Public |
11be8e0d1344
Add official LGPL license headers to the files that were missing them.
diego
parents:
93
diff
changeset
|
6 * License as published by the Free Software Foundation; either |
11be8e0d1344
Add official LGPL license headers to the files that were missing them.
diego
parents:
93
diff
changeset
|
7 * version 2 of the License, or (at your option) any later version. |
11be8e0d1344
Add official LGPL license headers to the files that were missing them.
diego
parents:
93
diff
changeset
|
8 * |
11be8e0d1344
Add official LGPL license headers to the files that were missing them.
diego
parents:
93
diff
changeset
|
9 * This library is distributed in the hope that it will be useful, |
11be8e0d1344
Add official LGPL license headers to the files that were missing them.
diego
parents:
93
diff
changeset
|
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
11be8e0d1344
Add official LGPL license headers to the files that were missing them.
diego
parents:
93
diff
changeset
|
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
11be8e0d1344
Add official LGPL license headers to the files that were missing them.
diego
parents:
93
diff
changeset
|
12 * Lesser General Public License for more details. |
11be8e0d1344
Add official LGPL license headers to the files that were missing them.
diego
parents:
93
diff
changeset
|
13 * |
11be8e0d1344
Add official LGPL license headers to the files that were missing them.
diego
parents:
93
diff
changeset
|
14 * You should have received a copy of the GNU Lesser General Public |
11be8e0d1344
Add official LGPL license headers to the files that were missing them.
diego
parents:
93
diff
changeset
|
15 * License along with this library; if not, write to the Free Software |
11be8e0d1344
Add official LGPL license headers to the files that were missing them.
diego
parents:
93
diff
changeset
|
16 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
11be8e0d1344
Add official LGPL license headers to the files that were missing them.
diego
parents:
93
diff
changeset
|
17 */ |
11be8e0d1344
Add official LGPL license headers to the files that were missing them.
diego
parents:
93
diff
changeset
|
18 |
52
7df307dfe85c
Move REG_* macros from libavcodec/i386/mmx.h to libavutil/x86_cpu.h
lucabe
parents:
diff
changeset
|
19 #ifndef AVUTIL_X86CPU_H |
7df307dfe85c
Move REG_* macros from libavcodec/i386/mmx.h to libavutil/x86_cpu.h
lucabe
parents:
diff
changeset
|
20 #define AVUTIL_X86CPU_H |
7df307dfe85c
Move REG_* macros from libavcodec/i386/mmx.h to libavutil/x86_cpu.h
lucabe
parents:
diff
changeset
|
21 |
7df307dfe85c
Move REG_* macros from libavcodec/i386/mmx.h to libavutil/x86_cpu.h
lucabe
parents:
diff
changeset
|
22 #ifdef ARCH_X86_64 |
7df307dfe85c
Move REG_* macros from libavcodec/i386/mmx.h to libavutil/x86_cpu.h
lucabe
parents:
diff
changeset
|
23 # define REG_a "rax" |
7df307dfe85c
Move REG_* macros from libavcodec/i386/mmx.h to libavutil/x86_cpu.h
lucabe
parents:
diff
changeset
|
24 # define REG_b "rbx" |
7df307dfe85c
Move REG_* macros from libavcodec/i386/mmx.h to libavutil/x86_cpu.h
lucabe
parents:
diff
changeset
|
25 # define REG_c "rcx" |
7df307dfe85c
Move REG_* macros from libavcodec/i386/mmx.h to libavutil/x86_cpu.h
lucabe
parents:
diff
changeset
|
26 # define REG_d "rdx" |
7df307dfe85c
Move REG_* macros from libavcodec/i386/mmx.h to libavutil/x86_cpu.h
lucabe
parents:
diff
changeset
|
27 # define REG_D "rdi" |
7df307dfe85c
Move REG_* macros from libavcodec/i386/mmx.h to libavutil/x86_cpu.h
lucabe
parents:
diff
changeset
|
28 # define REG_S "rsi" |
7df307dfe85c
Move REG_* macros from libavcodec/i386/mmx.h to libavutil/x86_cpu.h
lucabe
parents:
diff
changeset
|
29 # define PTR_SIZE "8" |
7df307dfe85c
Move REG_* macros from libavcodec/i386/mmx.h to libavutil/x86_cpu.h
lucabe
parents:
diff
changeset
|
30 |
7df307dfe85c
Move REG_* macros from libavcodec/i386/mmx.h to libavutil/x86_cpu.h
lucabe
parents:
diff
changeset
|
31 # define REG_SP "rsp" |
7df307dfe85c
Move REG_* macros from libavcodec/i386/mmx.h to libavutil/x86_cpu.h
lucabe
parents:
diff
changeset
|
32 # define REG_BP "rbp" |
7df307dfe85c
Move REG_* macros from libavcodec/i386/mmx.h to libavutil/x86_cpu.h
lucabe
parents:
diff
changeset
|
33 # define REGBP rbp |
7df307dfe85c
Move REG_* macros from libavcodec/i386/mmx.h to libavutil/x86_cpu.h
lucabe
parents:
diff
changeset
|
34 # define REGa rax |
7df307dfe85c
Move REG_* macros from libavcodec/i386/mmx.h to libavutil/x86_cpu.h
lucabe
parents:
diff
changeset
|
35 # define REGb rbx |
93 | 36 # define REGc rcx |
52
7df307dfe85c
Move REG_* macros from libavcodec/i386/mmx.h to libavutil/x86_cpu.h
lucabe
parents:
diff
changeset
|
37 # define REGSP rsp |
7df307dfe85c
Move REG_* macros from libavcodec/i386/mmx.h to libavutil/x86_cpu.h
lucabe
parents:
diff
changeset
|
38 |
7df307dfe85c
Move REG_* macros from libavcodec/i386/mmx.h to libavutil/x86_cpu.h
lucabe
parents:
diff
changeset
|
39 #else |
7df307dfe85c
Move REG_* macros from libavcodec/i386/mmx.h to libavutil/x86_cpu.h
lucabe
parents:
diff
changeset
|
40 |
7df307dfe85c
Move REG_* macros from libavcodec/i386/mmx.h to libavutil/x86_cpu.h
lucabe
parents:
diff
changeset
|
41 # define REG_a "eax" |
7df307dfe85c
Move REG_* macros from libavcodec/i386/mmx.h to libavutil/x86_cpu.h
lucabe
parents:
diff
changeset
|
42 # define REG_b "ebx" |
7df307dfe85c
Move REG_* macros from libavcodec/i386/mmx.h to libavutil/x86_cpu.h
lucabe
parents:
diff
changeset
|
43 # define REG_c "ecx" |
7df307dfe85c
Move REG_* macros from libavcodec/i386/mmx.h to libavutil/x86_cpu.h
lucabe
parents:
diff
changeset
|
44 # define REG_d "edx" |
7df307dfe85c
Move REG_* macros from libavcodec/i386/mmx.h to libavutil/x86_cpu.h
lucabe
parents:
diff
changeset
|
45 # define REG_D "edi" |
7df307dfe85c
Move REG_* macros from libavcodec/i386/mmx.h to libavutil/x86_cpu.h
lucabe
parents:
diff
changeset
|
46 # define REG_S "esi" |
7df307dfe85c
Move REG_* macros from libavcodec/i386/mmx.h to libavutil/x86_cpu.h
lucabe
parents:
diff
changeset
|
47 # define PTR_SIZE "4" |
7df307dfe85c
Move REG_* macros from libavcodec/i386/mmx.h to libavutil/x86_cpu.h
lucabe
parents:
diff
changeset
|
48 |
7df307dfe85c
Move REG_* macros from libavcodec/i386/mmx.h to libavutil/x86_cpu.h
lucabe
parents:
diff
changeset
|
49 # define REG_SP "esp" |
7df307dfe85c
Move REG_* macros from libavcodec/i386/mmx.h to libavutil/x86_cpu.h
lucabe
parents:
diff
changeset
|
50 # define REG_BP "ebp" |
7df307dfe85c
Move REG_* macros from libavcodec/i386/mmx.h to libavutil/x86_cpu.h
lucabe
parents:
diff
changeset
|
51 # define REGBP ebp |
7df307dfe85c
Move REG_* macros from libavcodec/i386/mmx.h to libavutil/x86_cpu.h
lucabe
parents:
diff
changeset
|
52 # define REGa eax |
7df307dfe85c
Move REG_* macros from libavcodec/i386/mmx.h to libavutil/x86_cpu.h
lucabe
parents:
diff
changeset
|
53 # define REGb ebx |
93 | 54 # define REGc ecx |
52
7df307dfe85c
Move REG_* macros from libavcodec/i386/mmx.h to libavutil/x86_cpu.h
lucabe
parents:
diff
changeset
|
55 # define REGSP esp |
7df307dfe85c
Move REG_* macros from libavcodec/i386/mmx.h to libavutil/x86_cpu.h
lucabe
parents:
diff
changeset
|
56 #endif |
7df307dfe85c
Move REG_* macros from libavcodec/i386/mmx.h to libavutil/x86_cpu.h
lucabe
parents:
diff
changeset
|
57 |
7df307dfe85c
Move REG_* macros from libavcodec/i386/mmx.h to libavutil/x86_cpu.h
lucabe
parents:
diff
changeset
|
58 #endif /* AVUTIL_X86CPU_H */ |