0001-arm_neon-added-function-macro-to-handle-the-undersco.patch 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. From 0491fbb26ab9b226e7e14417848d20b64bc02649 Mon Sep 17 00:00:00 2001
  2. From: David Geldreich <david.geldreich@free.fr>
  3. Date: Fri, 20 Apr 2012 16:41:19 +0200
  4. Subject: [PATCH 01/15] arm_neon: added function macro to handle the underscore
  5. prefix for the iOS ARM ABI
  6. ---
  7. modules/arm_neon/asm.S | 49 +++++++++++++++++++++++++++++++++++++++++++++++++
  8. 1 file changed, 49 insertions(+)
  9. create mode 100644 modules/arm_neon/asm.S
  10. diff --git a/modules/arm_neon/asm.S b/modules/arm_neon/asm.S
  11. new file mode 100644
  12. index 0000000..d853255
  13. --- /dev/null
  14. +++ b/modules/arm_neon/asm.S
  15. @@ -0,0 +1,49 @@
  16. +@*****************************************************************************
  17. +@ asm.S : defines and macros
  18. +@*****************************************************************************
  19. +@ Copyright (C) 2012 David Geldreich <david.geldreich at free.fr>
  20. +@
  21. +@ This program is free software; you can redistribute it and/or modify
  22. +@ it under the terms of the GNU General Public License as published by
  23. +@ the Free Software Foundation; either version 2 of the License, or
  24. +@ (at your option) any later version.
  25. +@
  26. +@ This program is distributed in the hope that it will be useful,
  27. +@ but WITHOUT ANY WARRANTY; without even the implied warranty of
  28. +@ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  29. +@ GNU General Public License for more details.
  30. +@
  31. +@ You should have received a copy of the GNU General Public License
  32. +@ along with this program; if not, write to the Free Software Foundation,
  33. +@ Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
  34. +@****************************************************************************/
  35. +
  36. +#ifdef __APPLE__
  37. +# define EXTERN_ASM _
  38. +#else
  39. +# define EXTERN_ASM
  40. +#endif
  41. +
  42. +#ifdef __ELF__
  43. +# define ELF
  44. +#else
  45. +# define ELF @
  46. +#endif
  47. +
  48. +.macro function name, export=0
  49. + .macro endfunc
  50. +ELF .size \name, . - \name
  51. + .endfunc
  52. + .purgem endfunc
  53. + .endm
  54. + .text
  55. + .align 2
  56. + .if \export
  57. + .global EXTERN_ASM\name
  58. +EXTERN_ASM\name:
  59. + .endif
  60. +ELF .type \name, %function
  61. + .func \name
  62. +\name:
  63. +.endm
  64. +
  65. --
  66. 2.9.2