regdef.h 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. /*
  2. * Alpha optimized DSP utils
  3. * copyright (c) 2002 Falk Hueffner <falk@debian.org>
  4. *
  5. * This file is part of FFmpeg.
  6. *
  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.
  11. *
  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.
  16. *
  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
  20. */
  21. /* Some BSDs don't seem to have regdef.h... sigh */
  22. #ifndef AVCODEC_ALPHA_REGDEF_H
  23. #define AVCODEC_ALPHA_REGDEF_H
  24. #define v0 $0 /* function return value */
  25. #define t0 $1 /* temporary registers (caller-saved) */
  26. #define t1 $2
  27. #define t2 $3
  28. #define t3 $4
  29. #define t4 $5
  30. #define t5 $6
  31. #define t6 $7
  32. #define t7 $8
  33. #define s0 $9 /* saved-registers (callee-saved registers) */
  34. #define s1 $10
  35. #define s2 $11
  36. #define s3 $12
  37. #define s4 $13
  38. #define s5 $14
  39. #define s6 $15
  40. #define fp s6 /* frame-pointer (s6 in frame-less procedures) */
  41. #define a0 $16 /* argument registers (caller-saved) */
  42. #define a1 $17
  43. #define a2 $18
  44. #define a3 $19
  45. #define a4 $20
  46. #define a5 $21
  47. #define t8 $22 /* more temps (caller-saved) */
  48. #define t9 $23
  49. #define t10 $24
  50. #define t11 $25
  51. #define ra $26 /* return address register */
  52. #define t12 $27
  53. #define pv t12 /* procedure-variable register */
  54. #define AT $at /* assembler temporary */
  55. #define gp $29 /* global pointer */
  56. #define sp $30 /* stack pointer */
  57. #define zero $31 /* reads as zero, writes are noops */
  58. #endif /* AVCODEC_ALPHA_REGDEF_H */