regdef.h 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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. /* Some nicer register names. */
  59. #define ta t10
  60. #define tb t11
  61. #define tc t12
  62. #define td AT
  63. /* Danger: these overlap with the argument list and the return value */
  64. #define te a5
  65. #define tf a4
  66. #define tg a3
  67. #define th v0
  68. #endif /* AVCODEC_ALPHA_REGDEF_H */