OpenSDE Packages Database (without history before r20070)
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.

113 lines
2.7 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../uclibc/430-i386_copysign.patch
  5. # Copyright (C) 2009 The OpenSDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  9. # This patch file is dual-licensed. It is available under the license the
  10. # patched project is licensed under, as long as it is an OpenSource license
  11. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  12. # of the GNU General Public License as published by the Free Software
  13. # Foundation; either version 2 of the License, or (at your option) any later
  14. # version.
  15. # --- SDE-COPYRIGHT-NOTE-END ---
  16. https://dev.openwrt.org/browser/trunk/toolchain/uClibc/patches-0.9.30.1/430-i386_copysign.patch
  17. --- ./libc/sysdeps/linux/i386/Makefile.arch.orig
  18. +++ ./libc/sysdeps/linux/i386/Makefile.arch
  19. @@ -9,6 +9,7 @@ CSRC := brk.c sigaction.c __syscall_erro
  20. SSRC := \
  21. __longjmp.S vfork.S clone.S setjmp.S bsd-setjmp.S bsd-_setjmp.S \
  22. - sync_file_range.S syscall.S mmap.S mmap64.S posix_fadvise64.S
  23. + sync_file_range.S syscall.S mmap.S mmap64.S posix_fadvise64.S \
  24. + s_copysign.S s_copysignf.S s_copysignl.S
  25. include $(top_srcdir)libc/sysdeps/linux/Makefile.commonarch
  26. --- /dev/null
  27. +++ ./libc/sysdeps/linux/i386/s_copysign.S
  28. @@ -0,0 +1,25 @@
  29. +/*
  30. + * Written by J.T. Conklin <jtc@netbsd.org>.
  31. + * Public domain.
  32. + */
  33. +
  34. +#define _ERRNO_H 1
  35. +#include <features.h>
  36. +#include <bits/errno.h>
  37. +
  38. +.text
  39. +.global copysign
  40. +.type copysign,%function
  41. +copysign:
  42. + movl 16(%esp),%edx
  43. + movl 8(%esp),%eax
  44. + andl $0x80000000,%edx
  45. + andl $0x7fffffff,%eax
  46. + orl %edx,%eax
  47. + movl %eax,8(%esp)
  48. + fldl 4(%esp)
  49. + ret
  50. +.size copysign,.-copysign
  51. +
  52. +libc_hidden_def(copysign)
  53. +
  54. --- /dev/null
  55. +++ ./libc/sysdeps/linux/i386/s_copysignf.S
  56. @@ -0,0 +1,25 @@
  57. +/*
  58. + * Written by J.T. Conklin <jtc@netbsd.org>.
  59. + * Public domain.
  60. + */
  61. +
  62. +#define _ERRNO_H 1
  63. +#include <features.h>
  64. +#include <bits/errno.h>
  65. +
  66. +.text
  67. +.global copysignf
  68. +.type copysignf,%function
  69. +copysignf:
  70. + movl 8(%esp),%edx
  71. + movl 4(%esp),%eax
  72. + andl $0x80000000,%edx
  73. + andl $0x7fffffff,%eax
  74. + orl %edx,%eax
  75. + movl %eax,4(%esp)
  76. + flds 4(%esp)
  77. + ret
  78. +.size copysignf,.-copysignf
  79. +
  80. +libc_hidden_def(copysignf)
  81. +
  82. --- /dev/null
  83. +++ ./libc/sysdeps/linux/i386/s_copysignl.S
  84. @@ -0,0 +1,26 @@
  85. +/*
  86. + * Written by J.T. Conklin <jtc@netbsd.org>.
  87. + * Changes for long double by Ulrich Drepper <drepper@cygnus.com>
  88. + * Public domain.
  89. + */
  90. +
  91. +#define _ERRNO_H 1
  92. +#include <features.h>
  93. +#include <bits/errno.h>
  94. +
  95. +.text
  96. +.global copysignl
  97. +.type copysignl,%function
  98. +copysignl:
  99. + movl 24(%esp),%edx
  100. + movl 12(%esp),%eax
  101. + andl $0x8000,%edx
  102. + andl $0x7fff,%eax
  103. + orl %edx,%eax
  104. + movl %eax,12(%esp)
  105. + fldt 4(%esp)
  106. + ret
  107. +.size copysignl,.-copysignl
  108. +
  109. +libc_hidden_def(copysignl)
  110. +