isnormal.S 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273
  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 "isnormal.c"
  38. .text
  39. ..TXTST0:
  40. # -- Begin __isnormald
  41. .text
  42. .align 16,0x90
  43. .globl __isnormald
  44. __isnormald:
  45. # parameter 1: %xmm0
  46. ..B1.1:
  47. .cfi_startproc
  48. ..___tag_value___isnormald.1:
  49. ..L2:
  50. xorl %eax, %eax
  51. movsd %xmm0, -8(%rsp)
  52. movl -4(%rsp), %edx
  53. andl $2147483647, %edx
  54. addl $-1048576, %edx
  55. cmpl $2145386496, %edx
  56. setb %al
  57. ret
  58. .align 16,0x90
  59. .cfi_endproc
  60. .type __isnormald,@function
  61. .size __isnormald,.-__isnormald
  62. .data
  63. # -- End __isnormald
  64. .text
  65. # -- Begin isnormald
  66. .text
  67. .align 16,0x90
  68. .globl isnormald
  69. isnormald:
  70. # parameter 1: %xmm0
  71. ..B2.1:
  72. .cfi_startproc
  73. ..___tag_value_isnormald.4:
  74. ..L5:
  75. xorl %eax, %eax
  76. movsd %xmm0, -8(%rsp)
  77. movl -4(%rsp), %edx
  78. andl $2147483647, %edx
  79. addl $-1048576, %edx
  80. cmpl $2145386496, %edx
  81. setb %al
  82. ret
  83. .align 16,0x90
  84. .cfi_endproc
  85. .type isnormald,@function
  86. .size isnormald,.-isnormald
  87. .data
  88. # -- End isnormald
  89. .text
  90. # -- Begin __isnormal
  91. .text
  92. .align 16,0x90
  93. .globl __isnormal
  94. __isnormal:
  95. # parameter 1: %xmm0
  96. ..B3.1:
  97. .cfi_startproc
  98. ..___tag_value___isnormal.7:
  99. ..L8:
  100. xorl %eax, %eax
  101. movsd %xmm0, -8(%rsp)
  102. movl -4(%rsp), %edx
  103. andl $2147483647, %edx
  104. addl $-1048576, %edx
  105. cmpl $2145386496, %edx
  106. setb %al
  107. ret
  108. .align 16,0x90
  109. .cfi_endproc
  110. .type __isnormal,@function
  111. .size __isnormal,.-__isnormal
  112. .data
  113. # -- End __isnormal
  114. .text
  115. # -- Begin isnormal
  116. .text
  117. .align 16,0x90
  118. .globl isnormal
  119. isnormal:
  120. # parameter 1: %xmm0
  121. ..B4.1:
  122. .cfi_startproc
  123. ..___tag_value_isnormal.10:
  124. ..L11:
  125. xorl %eax, %eax
  126. movsd %xmm0, -8(%rsp)
  127. movl -4(%rsp), %edx
  128. andl $2147483647, %edx
  129. addl $-1048576, %edx
  130. cmpl $2145386496, %edx
  131. setb %al
  132. ret
  133. .align 16,0x90
  134. .cfi_endproc
  135. .type isnormal,@function
  136. .size isnormal,.-isnormal
  137. .data
  138. # -- End isnormal
  139. .text
  140. # -- Begin __isnormalf
  141. .text
  142. .align 16,0x90
  143. .globl __isnormalf
  144. __isnormalf:
  145. # parameter 1: %xmm0
  146. ..B5.1:
  147. .cfi_startproc
  148. ..___tag_value___isnormalf.13:
  149. ..L14:
  150. xorl %eax, %eax
  151. movd %xmm0, %edx
  152. andl $2147483647, %edx
  153. addl $-8388608, %edx
  154. cmpl $2130706432, %edx
  155. setb %al
  156. ret
  157. .align 16,0x90
  158. .cfi_endproc
  159. .type __isnormalf,@function
  160. .size __isnormalf,.-__isnormalf
  161. .data
  162. # -- End __isnormalf
  163. .text
  164. # -- Begin isnormalf
  165. .text
  166. .align 16,0x90
  167. .globl isnormalf
  168. isnormalf:
  169. # parameter 1: %xmm0
  170. ..B6.1:
  171. .cfi_startproc
  172. ..___tag_value_isnormalf.16:
  173. ..L17:
  174. xorl %eax, %eax
  175. movd %xmm0, %edx
  176. andl $2147483647, %edx
  177. addl $-8388608, %edx
  178. cmpl $2130706432, %edx
  179. setb %al
  180. ret
  181. .align 16,0x90
  182. .cfi_endproc
  183. .type isnormalf,@function
  184. .size isnormalf,.-isnormalf
  185. .data
  186. # -- End isnormalf
  187. .text
  188. # -- Begin __isnormall
  189. .text
  190. .align 16,0x90
  191. .globl __isnormall
  192. __isnormall:
  193. # parameter 1: 8 + %rsp
  194. ..B7.1:
  195. .cfi_startproc
  196. ..___tag_value___isnormall.19:
  197. ..L20:
  198. movzwl 16(%rsp), %edx
  199. shll $16, %edx
  200. movzwl 14(%rsp), %eax
  201. orl %eax, %edx
  202. andl $2147483647, %edx
  203. cmpl $4096, %edx
  204. jb ..B7.4
  205. ..B7.2:
  206. testl $32768, %edx
  207. jne ..B7.4
  208. ..B7.3:
  209. xorl %eax, %eax
  210. ret
  211. ..B7.4:
  212. addl $-65536, %edx
  213. xorl %eax, %eax
  214. cmpl $2147352576, %edx
  215. setb %al
  216. ret
  217. .align 16,0x90
  218. .cfi_endproc
  219. .type __isnormall,@function
  220. .size __isnormall,.-__isnormall
  221. .data
  222. # -- End __isnormall
  223. .text
  224. # -- Begin isnormall
  225. .text
  226. .align 16,0x90
  227. .globl isnormall
  228. isnormall:
  229. # parameter 1: 8 + %rsp
  230. ..B8.1:
  231. .cfi_startproc
  232. ..___tag_value_isnormall.22:
  233. ..L23:
  234. movzwl 16(%rsp), %edx
  235. shll $16, %edx
  236. movzwl 14(%rsp), %eax
  237. orl %eax, %edx
  238. andl $2147483647, %edx
  239. cmpl $4096, %edx
  240. jb ..B8.4
  241. ..B8.2:
  242. testl $32768, %edx
  243. jne ..B8.4
  244. ..B8.3:
  245. xorl %eax, %eax
  246. ret
  247. ..B8.4:
  248. addl $-65536, %edx
  249. xorl %eax, %eax
  250. cmpl $2147352576, %edx
  251. setb %al
  252. ret
  253. .align 16,0x90
  254. .cfi_endproc
  255. .type isnormall,@function
  256. .size isnormall,.-isnormall
  257. .data
  258. # -- End isnormall
  259. .data
  260. .section .note.GNU-stack, ""
  261. // -- Begin DWARF2 SEGMENT .eh_frame
  262. .section .eh_frame,"a",@progbits
  263. .eh_frame_seg:
  264. .align 1
  265. # End