signbit.S 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201
  1. /*
  2. * Math library
  3. *
  4. * Copyright (C) 2016 Intel Corporation. All rights reserved.
  5. *
  6. * Redistribution and use in source and binary forms, with or without
  7. * modification, are permitted provided that the following conditions
  8. * are met:
  9. *
  10. * * Redistributions of source code must retain the above copyright
  11. * notice, this list of conditions and the following disclaimer.
  12. * * Redistributions in binary form must reproduce the above copyright
  13. * notice, this list of conditions and the following disclaimer in
  14. * the documentation and/or other materials provided with the
  15. * distribution.
  16. * * Neither the name of Intel Corporation nor the names of its
  17. * contributors may be used to endorse or promote products derived
  18. * from this software without specific prior written permission.
  19. *
  20. * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  21. * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  22. * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  23. * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  24. * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  25. * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  26. * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  27. * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  28. * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  29. * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  30. * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  31. *
  32. *
  33. * Author Name <jingwei.zhang@intel.com>
  34. * History:
  35. * 03-14-2016 Initial version. numerics svn rev. 12864
  36. */
  37. .file "signbit.c"
  38. .text
  39. ..TXTST0:
  40. # -- Begin __signbitd
  41. .text
  42. .align 16,0x90
  43. .globl __signbitd
  44. __signbitd:
  45. # parameter 1: 4 + %esp
  46. ..B1.1:
  47. ..L1:
  48. movl 8(%esp), %eax
  49. shrl $31, %eax
  50. ret
  51. .align 16,0x90
  52. .type __signbitd,@function
  53. .size __signbitd,.-__signbitd
  54. .data
  55. # -- End __signbitd
  56. .text
  57. # -- Begin signbitd
  58. .text
  59. .align 16,0x90
  60. .globl signbitd
  61. signbitd:
  62. # parameter 1: 4 + %esp
  63. ..B2.1:
  64. ..L2:
  65. movl 8(%esp), %eax
  66. shrl $31, %eax
  67. ret
  68. .align 16,0x90
  69. .type signbitd,@function
  70. .size signbitd,.-signbitd
  71. .data
  72. # -- End signbitd
  73. .text
  74. # -- Begin __signbit
  75. .text
  76. .align 16,0x90
  77. .globl __signbit
  78. __signbit:
  79. # parameter 1: 4 + %esp
  80. ..B3.1:
  81. ..L3:
  82. movl 8(%esp), %eax
  83. shrl $31, %eax
  84. ret
  85. .align 16,0x90
  86. .type __signbit,@function
  87. .size __signbit,.-__signbit
  88. .data
  89. # -- End __signbit
  90. .text
  91. # -- Begin signbit
  92. .text
  93. .align 16,0x90
  94. .globl signbit
  95. signbit:
  96. # parameter 1: 4 + %esp
  97. ..B4.1:
  98. ..L4:
  99. movl 8(%esp), %eax
  100. shrl $31, %eax
  101. ret
  102. .align 16,0x90
  103. .type signbit,@function
  104. .size signbit,.-signbit
  105. .data
  106. # -- End signbit
  107. .text
  108. # -- Begin __signbitf
  109. .text
  110. .align 16,0x90
  111. .globl __signbitf
  112. __signbitf:
  113. # parameter 1: 4 + %esp
  114. ..B5.1:
  115. ..L5:
  116. movl 4(%esp), %eax
  117. shrl $31, %eax
  118. ret
  119. .align 16,0x90
  120. .type __signbitf,@function
  121. .size __signbitf,.-__signbitf
  122. .data
  123. # -- End __signbitf
  124. .text
  125. # -- Begin signbitf
  126. .text
  127. .align 16,0x90
  128. .globl signbitf
  129. signbitf:
  130. # parameter 1: 4 + %esp
  131. ..B6.1:
  132. ..L6:
  133. movl 4(%esp), %eax
  134. shrl $31, %eax
  135. ret
  136. .align 16,0x90
  137. .type signbitf,@function
  138. .size signbitf,.-signbitf
  139. .data
  140. # -- End signbitf
  141. .text
  142. # -- Begin __signbitl
  143. .text
  144. .align 16,0x90
  145. .globl __signbitl
  146. __signbitl:
  147. # parameter 1: 4 + %esp
  148. ..B7.1:
  149. ..L7:
  150. movzbl 13(%esp), %eax
  151. shrl $7, %eax
  152. movzwl 12(%esp), %edx
  153. shll $15, %eax
  154. andl $32767, %edx
  155. orl %edx, %eax
  156. shll $16, %eax
  157. movzwl 10(%esp), %ecx
  158. orl %ecx, %eax
  159. shrl $31, %eax
  160. ret
  161. .align 16,0x90
  162. .type __signbitl,@function
  163. .size __signbitl,.-__signbitl
  164. .data
  165. # -- End __signbitl
  166. .text
  167. # -- Begin signbitl
  168. .text
  169. .align 16,0x90
  170. .globl signbitl
  171. signbitl:
  172. # parameter 1: 4 + %esp
  173. ..B8.1:
  174. ..L8:
  175. movzbl 13(%esp), %eax
  176. shrl $7, %eax
  177. movzwl 12(%esp), %edx
  178. shll $15, %eax
  179. andl $32767, %edx
  180. orl %edx, %eax
  181. shll $16, %eax
  182. movzwl 10(%esp), %ecx
  183. orl %ecx, %eax
  184. shrl $31, %eax
  185. ret
  186. .align 16,0x90
  187. .type signbitl,@function
  188. .size signbitl,.-signbitl
  189. .data
  190. # -- End signbitl
  191. .data
  192. .section .note.GNU-stack, ""
  193. # End