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