You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

59 lines
1.5KB

  1. /*
  2. * copyright (c) 2006 Michael Niedermayer <michaelni@gmx.at>
  3. *
  4. * This library is free software; you can redistribute it and/or
  5. * modify it under the terms of the GNU Lesser General Public
  6. * License as published by the Free Software Foundation; either
  7. * version 2 of the License, or (at your option) any later version.
  8. *
  9. * This library is distributed in the hope that it will be useful,
  10. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  12. * Lesser General Public License for more details.
  13. *
  14. * You should have received a copy of the GNU Lesser General Public
  15. * License along with this library; if not, write to the Free Software
  16. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  17. */
  18. #ifndef AVUTIL_X86CPU_H
  19. #define AVUTIL_X86CPU_H
  20. #ifdef ARCH_X86_64
  21. # define REG_a "rax"
  22. # define REG_b "rbx"
  23. # define REG_c "rcx"
  24. # define REG_d "rdx"
  25. # define REG_D "rdi"
  26. # define REG_S "rsi"
  27. # define PTR_SIZE "8"
  28. # define REG_SP "rsp"
  29. # define REG_BP "rbp"
  30. # define REGBP rbp
  31. # define REGa rax
  32. # define REGb rbx
  33. # define REGc rcx
  34. # define REGSP rsp
  35. #else
  36. # define REG_a "eax"
  37. # define REG_b "ebx"
  38. # define REG_c "ecx"
  39. # define REG_d "edx"
  40. # define REG_D "edi"
  41. # define REG_S "esi"
  42. # define PTR_SIZE "4"
  43. # define REG_SP "esp"
  44. # define REG_BP "ebp"
  45. # define REGBP ebp
  46. # define REGa eax
  47. # define REGb ebx
  48. # define REGc ecx
  49. # define REGSP esp
  50. #endif
  51. #endif /* AVUTIL_X86CPU_H */