OSDN Git Service

Add official LGPL license headers to the files that were missing them.
[coroid/ffmpeg_saccubus.git] / libavcodec / alpha / regdef.h
1 /*
2  * Alpha optimized DSP utils
3  * copyright (c) 2002 Falk Hueffner <falk@debian.org>
4  *
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Lesser General Public
7  * License as published by the Free Software Foundation; either
8  * version 2 of the License, or (at your option) any later version.
9  *
10  * This library is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13  * Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public
16  * License along with this library; if not, write to the Free Software
17  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18  */
19
20 /* Some BSDs don't seem to have regdef.h... sigh  */
21 #ifndef alpha_regdef_h
22 #define alpha_regdef_h
23
24 #define v0      $0      /* function return value */
25
26 #define t0      $1      /* temporary registers (caller-saved) */
27 #define t1      $2
28 #define t2      $3
29 #define t3      $4
30 #define t4      $5
31 #define t5      $6
32 #define t6      $7
33 #define t7      $8
34
35 #define s0      $9      /* saved-registers (callee-saved registers) */
36 #define s1      $10
37 #define s2      $11
38 #define s3      $12
39 #define s4      $13
40 #define s5      $14
41 #define s6      $15
42 #define fp      s6      /* frame-pointer (s6 in frame-less procedures) */
43
44 #define a0      $16     /* argument registers (caller-saved) */
45 #define a1      $17
46 #define a2      $18
47 #define a3      $19
48 #define a4      $20
49 #define a5      $21
50
51 #define t8      $22     /* more temps (caller-saved) */
52 #define t9      $23
53 #define t10     $24
54 #define t11     $25
55 #define ra      $26     /* return address register */
56 #define t12     $27
57
58 #define pv      t12     /* procedure-variable register */
59 #define AT      $at     /* assembler temporary */
60 #define gp      $29     /* global pointer */
61 #define sp      $30     /* stack pointer */
62 #define zero    $31     /* reads as zero, writes are noops */
63
64 #endif /* alpha_regdef_h */