Mercurial > libavutil.hg
annotate x86_cpu.h @ 469:bdc8433d739e libavutil
Add #include "config.h" to headers that need it.
author | diego |
---|---|
date | Thu, 13 Mar 2008 18:04:21 +0000 |
parents | 4b2cd7e98d58 |
children | 3213123cd4e7 |
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 * |
116
d76a36742464
Change license headers to say 'FFmpeg' instead of 'this program/this library'
diego
parents:
108
diff
changeset
|
4 * This file is part of FFmpeg. |
d76a36742464
Change license headers to say 'FFmpeg' instead of 'this program/this library'
diego
parents:
108
diff
changeset
|
5 * |
d76a36742464
Change license headers to say 'FFmpeg' instead of 'this program/this library'
diego
parents:
108
diff
changeset
|
6 * FFmpeg is free software; you can redistribute it and/or |
108
11be8e0d1344
Add official LGPL license headers to the files that were missing them.
diego
parents:
93
diff
changeset
|
7 * 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
|
8 * License as published by the Free Software Foundation; either |
116
d76a36742464
Change license headers to say 'FFmpeg' instead of 'this program/this library'
diego
parents:
108
diff
changeset
|
9 * version 2.1 of the License, or (at your option) any later version. |
108
11be8e0d1344
Add official LGPL license headers to the files that were missing them.
diego
parents:
93
diff
changeset
|
10 * |
116
d76a36742464
Change license headers to say 'FFmpeg' instead of 'this program/this library'
diego
parents:
108
diff
changeset
|
11 * FFmpeg is distributed in the hope that it will be useful, |
108
11be8e0d1344
Add official LGPL license headers to the files that were missing them.
diego
parents:
93
diff
changeset
|
12 * 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
|
13 * 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
|
14 * 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
|
15 * |
11be8e0d1344
Add official LGPL license headers to the files that were missing them.
diego
parents:
93
diff
changeset
|
16 * You should have received a copy of the GNU Lesser General Public |
116
d76a36742464
Change license headers to say 'FFmpeg' instead of 'this program/this library'
diego
parents:
108
diff
changeset
|
17 * License along with FFmpeg; if not, write to the Free Software |
108
11be8e0d1344
Add official LGPL license headers to the files that were missing them.
diego
parents:
93
diff
changeset
|
18 * 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
|
19 */ |
11be8e0d1344
Add official LGPL license headers to the files that were missing them.
diego
parents:
93
diff
changeset
|
20 |
392 | 21 #ifndef FFMPEG_X86CPU_H |
22 #define FFMPEG_X86CPU_H | |
52
7df307dfe85c
Move REG_* macros from libavcodec/i386/mmx.h to libavutil/x86_cpu.h
lucabe
parents:
diff
changeset
|
23 |
469 | 24 #include "config.h" |
25 | |
52
7df307dfe85c
Move REG_* macros from libavcodec/i386/mmx.h to libavutil/x86_cpu.h
lucabe
parents:
diff
changeset
|
26 #ifdef ARCH_X86_64 |
452 | 27 # define REG_a "rax" |
28 # define REG_b "rbx" | |
29 # define REG_c "rcx" | |
30 # define REG_d "rdx" | |
31 # define REG_D "rdi" | |
32 # define REG_S "rsi" | |
33 # define PTR_SIZE "8" | |
52
7df307dfe85c
Move REG_* macros from libavcodec/i386/mmx.h to libavutil/x86_cpu.h
lucabe
parents:
diff
changeset
|
34 |
452 | 35 # define REG_SP "rsp" |
36 # define REG_BP "rbp" | |
37 # define REGBP rbp | |
38 # define REGa rax | |
39 # define REGb rbx | |
40 # define REGc rcx | |
41 # define REGSP rsp | |
52
7df307dfe85c
Move REG_* macros from libavcodec/i386/mmx.h to libavutil/x86_cpu.h
lucabe
parents:
diff
changeset
|
42 |
7df307dfe85c
Move REG_* macros from libavcodec/i386/mmx.h to libavutil/x86_cpu.h
lucabe
parents:
diff
changeset
|
43 #else |
7df307dfe85c
Move REG_* macros from libavcodec/i386/mmx.h to libavutil/x86_cpu.h
lucabe
parents:
diff
changeset
|
44 |
452 | 45 # define REG_a "eax" |
46 # define REG_b "ebx" | |
47 # define REG_c "ecx" | |
48 # define REG_d "edx" | |
49 # define REG_D "edi" | |
50 # define REG_S "esi" | |
51 # define PTR_SIZE "4" | |
52
7df307dfe85c
Move REG_* macros from libavcodec/i386/mmx.h to libavutil/x86_cpu.h
lucabe
parents:
diff
changeset
|
52 |
452 | 53 # define REG_SP "esp" |
54 # define REG_BP "ebp" | |
55 # define REGBP ebp | |
56 # define REGa eax | |
57 # define REGb ebx | |
58 # define REGc ecx | |
59 # define REGSP esp | |
52
7df307dfe85c
Move REG_* macros from libavcodec/i386/mmx.h to libavutil/x86_cpu.h
lucabe
parents:
diff
changeset
|
60 #endif |
7df307dfe85c
Move REG_* macros from libavcodec/i386/mmx.h to libavutil/x86_cpu.h
lucabe
parents:
diff
changeset
|
61 |
325
03b6f31e7f4b
Move ebx_available and ebp_available from CONFIG_LIST to HAVE_LIST,
diego
parents:
322
diff
changeset
|
62 #if defined(ARCH_X86_64) || (defined(ARCH_X86_32) && defined(HAVE_EBX_AVAILABLE) && defined(HAVE_EBP_AVAILABLE)) |
452 | 63 # define HAVE_7REGS 1 |
322
f16d448df06e
Fix compilation when using the --disable-opts parameter. This to help those
takis
parents:
116
diff
changeset
|
64 #endif |
f16d448df06e
Fix compilation when using the --disable-opts parameter. This to help those
takis
parents:
116
diff
changeset
|
65 |
331
67b9676e4b69
Mark code parts that cannot work on AMD64 due to broken relocations as such.
diego
parents:
325
diff
changeset
|
66 #if defined(ARCH_X86_64) && defined(PIC) |
452 | 67 # define BROKEN_RELOCATIONS 1 |
331
67b9676e4b69
Mark code parts that cannot work on AMD64 due to broken relocations as such.
diego
parents:
325
diff
changeset
|
68 #endif |
67b9676e4b69
Mark code parts that cannot work on AMD64 due to broken relocations as such.
diego
parents:
325
diff
changeset
|
69 |
392 | 70 #endif /* FFMPEG_X86CPU_H */ |