f05577a89b13a7aca6fdaba6992f020a4a15d0eb
2 * Alpha optimized DSP utils
3 * copyright (c) 2002 Falk Hueffner <falk@debian.org>
5 * This file is part of FFmpeg.
7 * FFmpeg is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Lesser General Public
9 * License as published by the Free Software Foundation; either
10 * version 2.1 of the License, or (at your option) any later version.
12 * FFmpeg is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Lesser General Public License for more details.
17 * You should have received a copy of the GNU Lesser General Public
18 * License along with FFmpeg; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
22 /* Some BSDs don't seem to have regdef.h... sigh */
23 #ifndef AVCODEC_ALPHA_REGDEF_H
24 #define AVCODEC_ALPHA_REGDEF_H
26 #define v0 $0 /* function return value */
28 #define t0 $1 /* temporary registers (caller-saved) */
37 #define s0 $9 /* saved-registers (callee-saved registers) */
44 #define fp s6 /* frame-pointer (s6 in frame-less procedures) */
46 #define a0 $16 /* argument registers (caller-saved) */
53 #define t8 $22 /* more temps (caller-saved) */
57 #define ra $26 /* return address register */
60 #define pv t12 /* procedure-variable register */
61 #define AT $at /* assembler temporary */
62 #define gp $29 /* global pointer */
63 #define sp $30 /* stack pointer */
64 #define zero $31 /* reads as zero, writes are noops */
66 /* Some nicer register names. */
71 /* Danger: these overlap with the argument list and the return value */
77 #endif /* AVCODEC_ALPHA_REGDEF_H */