aix.m4
Upload User: qaz666999
Upload Date: 2022-08-06
Package Size: 2570k
Code Size: 2k
Category:

Algorithm

Development Platform:

Unix_Linux

  1. divert(-1)
  2. dnl  m4 macros for AIX 64-bit assembly.
  3. dnl  Copyright 2000, 2001, 2002, 2005, 2006 Free Software Foundation, Inc.
  4. dnl
  5. dnl  This file is part of the GNU MP Library.
  6. dnl
  7. dnl  The GNU MP Library is free software; you can redistribute it and/or
  8. dnl  modify it under the terms of the GNU Lesser General Public License as
  9. dnl  published by the Free Software Foundation; either version 3 of the
  10. dnl  License, or (at your option) any later version.
  11. dnl
  12. dnl  The GNU MP Library is distributed in the hope that it will be useful,
  13. dnl  but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. dnl  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  15. dnl  Lesser General Public License for more details.
  16. dnl
  17. dnl  You should have received a copy of the GNU Lesser General Public License
  18. dnl  along with the GNU MP Library.  If not, see http://www.gnu.org/licenses/.
  19. define(`ASM_START',
  20. `.machine "ppc64"
  21. .toc')
  22. dnl  Called: PROLOGUE_cpu(GSYM_PREFIX`'foo)
  23. dnl          EPILOGUE_cpu(GSYM_PREFIX`'foo)
  24. dnl
  25. dnl  Don't want ELF style .size in the epilogue.
  26. define(`PROLOGUE_cpu',
  27. m4_assert_numargs(1)
  28. `
  29. .globl $1
  30. .globl .$1
  31. .csect [DS], 3
  32. $1:
  33. .llong .$1, TOC[tc0], 0
  34. .csect [PR]
  35. .align 4
  36. .$1:')
  37. define(`EPILOGUE_cpu',
  38. m4_assert_numargs(1)
  39. `')
  40. define(`TOC_ENTRY', `')
  41. define(`LEA',
  42. m4_assert_numargs(2)
  43. `define(`TOC_ENTRY',
  44. ` .toc
  45. ..$2: .tc $2[TC], $2')'
  46. `ld $1, ..$2(2)')
  47. define(`LEAL',
  48. m4_assert_numargs(2)
  49. `LEA($1,$2)')
  50. define(`EXTERN',
  51. m4_assert_numargs(1)
  52. ` .globl $1')
  53. define(`EXTERN_FUNC',
  54. m4_assert_numargs(1)
  55. ` .globl .$1')
  56. define(`DEF_OBJECT',
  57. m4_assert_numargs_range(1,2)
  58. ` .csect [RO], 3
  59. ALIGN(ifelse($#,1,2,$2))
  60. $1:
  61. ')
  62. define(`END_OBJECT',
  63. m4_assert_numargs(1))
  64. define(`CALL',
  65. `bl .$1
  66. nop')
  67. define(`ASM_END', `TOC_ENTRY')
  68. divert