annotate ffmpeg/libavcodec/alpha/regdef.h @ 13:844d341cf643 tip

Back up before ISMIR
author Yading Song <yading.song@eecs.qmul.ac.uk>
date Thu, 31 Oct 2013 13:17:06 +0000
parents 6840f77b83aa
children
rev   line source
yading@10 1 /*
yading@10 2 * Alpha optimized DSP utils
yading@10 3 * copyright (c) 2002 Falk Hueffner <falk@debian.org>
yading@10 4 *
yading@10 5 * This file is part of FFmpeg.
yading@10 6 *
yading@10 7 * FFmpeg is free software; you can redistribute it and/or
yading@10 8 * modify it under the terms of the GNU Lesser General Public
yading@10 9 * License as published by the Free Software Foundation; either
yading@10 10 * version 2.1 of the License, or (at your option) any later version.
yading@10 11 *
yading@10 12 * FFmpeg is distributed in the hope that it will be useful,
yading@10 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
yading@10 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
yading@10 15 * Lesser General Public License for more details.
yading@10 16 *
yading@10 17 * You should have received a copy of the GNU Lesser General Public
yading@10 18 * License along with FFmpeg; if not, write to the Free Software
yading@10 19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
yading@10 20 */
yading@10 21
yading@10 22 /* Some BSDs don't seem to have regdef.h... sigh */
yading@10 23 #ifndef AVCODEC_ALPHA_REGDEF_H
yading@10 24 #define AVCODEC_ALPHA_REGDEF_H
yading@10 25
yading@10 26 #define v0 $0 /* function return value */
yading@10 27
yading@10 28 #define t0 $1 /* temporary registers (caller-saved) */
yading@10 29 #define t1 $2
yading@10 30 #define t2 $3
yading@10 31 #define t3 $4
yading@10 32 #define t4 $5
yading@10 33 #define t5 $6
yading@10 34 #define t6 $7
yading@10 35 #define t7 $8
yading@10 36
yading@10 37 #define s0 $9 /* saved-registers (callee-saved registers) */
yading@10 38 #define s1 $10
yading@10 39 #define s2 $11
yading@10 40 #define s3 $12
yading@10 41 #define s4 $13
yading@10 42 #define s5 $14
yading@10 43 #define s6 $15
yading@10 44 #define fp s6 /* frame-pointer (s6 in frame-less procedures) */
yading@10 45
yading@10 46 #define a0 $16 /* argument registers (caller-saved) */
yading@10 47 #define a1 $17
yading@10 48 #define a2 $18
yading@10 49 #define a3 $19
yading@10 50 #define a4 $20
yading@10 51 #define a5 $21
yading@10 52
yading@10 53 #define t8 $22 /* more temps (caller-saved) */
yading@10 54 #define t9 $23
yading@10 55 #define t10 $24
yading@10 56 #define t11 $25
yading@10 57 #define ra $26 /* return address register */
yading@10 58 #define t12 $27
yading@10 59
yading@10 60 #define pv t12 /* procedure-variable register */
yading@10 61 #define AT $at /* assembler temporary */
yading@10 62 #define gp $29 /* global pointer */
yading@10 63 #define sp $30 /* stack pointer */
yading@10 64 #define zero $31 /* reads as zero, writes are noops */
yading@10 65
yading@10 66 /* Some nicer register names. */
yading@10 67 #define ta t10
yading@10 68 #define tb t11
yading@10 69 #define tc t12
yading@10 70 #define td AT
yading@10 71 /* Danger: these overlap with the argument list and the return value */
yading@10 72 #define te a5
yading@10 73 #define tf a4
yading@10 74 #define tg a3
yading@10 75 #define th v0
yading@10 76
yading@10 77 #endif /* AVCODEC_ALPHA_REGDEF_H */