isfinite.S 9.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449
  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 "isfinite.c"
  38. .text
  39. ..TXTST0:
  40. # -- Begin isfinitel
  41. .text
  42. .align 16,0x90
  43. .globl isfinitel
  44. isfinitel:
  45. # parameter 1: 8 + %rsp
  46. ..B1.1:
  47. .cfi_startproc
  48. ..___tag_value_isfinitel.1:
  49. ..L2:
  50. xorl %eax, %eax
  51. movzwl 16(%rsp), %ecx
  52. shll $16, %ecx
  53. movzwl 14(%rsp), %edx
  54. orl %edx, %ecx
  55. andl $2147483647, %ecx
  56. cmpl $2147418112, %ecx
  57. setb %al
  58. ret
  59. .align 16,0x90
  60. .cfi_endproc
  61. .type isfinitel,@function
  62. .size isfinitel,.-isfinitel
  63. .data
  64. # -- End isfinitel
  65. .text
  66. # -- Begin __isfinitel
  67. .text
  68. .align 16,0x90
  69. .globl __isfinitel
  70. __isfinitel:
  71. # parameter 1: 8 + %rsp
  72. ..B2.1:
  73. .cfi_startproc
  74. ..___tag_value___isfinitel.4:
  75. ..L5:
  76. xorl %eax, %eax
  77. movzwl 16(%rsp), %ecx
  78. shll $16, %ecx
  79. movzwl 14(%rsp), %edx
  80. orl %edx, %ecx
  81. andl $2147483647, %ecx
  82. cmpl $2147418112, %ecx
  83. setb %al
  84. ret
  85. .align 16,0x90
  86. .cfi_endproc
  87. .type __isfinitel,@function
  88. .size __isfinitel,.-__isfinitel
  89. .data
  90. # -- End __isfinitel
  91. .text
  92. # -- Begin isfinitef
  93. .text
  94. .align 16,0x90
  95. .globl isfinitef
  96. isfinitef:
  97. # parameter 1: %xmm0
  98. ..B3.1:
  99. .cfi_startproc
  100. ..___tag_value_isfinitef.7:
  101. ..L8:
  102. xorl %eax, %eax
  103. movd %xmm0, %edx
  104. andl $2147483647, %edx
  105. cmpl $2139095040, %edx
  106. setb %al
  107. ret
  108. .align 16,0x90
  109. .cfi_endproc
  110. .type isfinitef,@function
  111. .size isfinitef,.-isfinitef
  112. .data
  113. # -- End isfinitef
  114. .text
  115. # -- Begin __isfinitef
  116. .text
  117. .align 16,0x90
  118. .globl __isfinitef
  119. __isfinitef:
  120. # parameter 1: %xmm0
  121. ..B4.1:
  122. .cfi_startproc
  123. ..___tag_value___isfinitef.10:
  124. ..L11:
  125. xorl %eax, %eax
  126. movd %xmm0, %edx
  127. andl $2147483647, %edx
  128. cmpl $2139095040, %edx
  129. setb %al
  130. ret
  131. .align 16,0x90
  132. .cfi_endproc
  133. .type __isfinitef,@function
  134. .size __isfinitef,.-__isfinitef
  135. .data
  136. # -- End __isfinitef
  137. .text
  138. # -- Begin isfinite
  139. .text
  140. .align 16,0x90
  141. .globl isfinite
  142. isfinite:
  143. # parameter 1: %xmm0
  144. ..B5.1:
  145. .cfi_startproc
  146. ..___tag_value_isfinite.13:
  147. ..L14:
  148. xorl %eax, %eax
  149. movsd %xmm0, -8(%rsp)
  150. movl -4(%rsp), %edx
  151. andl $2147483647, %edx
  152. cmpl $2146435072, %edx
  153. setb %al
  154. ret
  155. .align 16,0x90
  156. .cfi_endproc
  157. .type isfinite,@function
  158. .size isfinite,.-isfinite
  159. .data
  160. # -- End isfinite
  161. .text
  162. # -- Begin __isfinite
  163. .text
  164. .align 16,0x90
  165. .globl __isfinite
  166. __isfinite:
  167. # parameter 1: %xmm0
  168. ..B6.1:
  169. .cfi_startproc
  170. ..___tag_value___isfinite.16:
  171. ..L17:
  172. xorl %eax, %eax
  173. movsd %xmm0, -8(%rsp)
  174. movl -4(%rsp), %edx
  175. andl $2147483647, %edx
  176. cmpl $2146435072, %edx
  177. setb %al
  178. ret
  179. .align 16,0x90
  180. .cfi_endproc
  181. .type __isfinite,@function
  182. .size __isfinite,.-__isfinite
  183. .data
  184. # -- End __isfinite
  185. .text
  186. # -- Begin isfinited
  187. .text
  188. .align 16,0x90
  189. .globl isfinited
  190. isfinited:
  191. # parameter 1: %xmm0
  192. ..B7.1:
  193. .cfi_startproc
  194. ..___tag_value_isfinited.19:
  195. ..L20:
  196. xorl %eax, %eax
  197. movsd %xmm0, -8(%rsp)
  198. movl -4(%rsp), %edx
  199. andl $2147483647, %edx
  200. cmpl $2146435072, %edx
  201. setb %al
  202. ret
  203. .align 16,0x90
  204. .cfi_endproc
  205. .type isfinited,@function
  206. .size isfinited,.-isfinited
  207. .data
  208. # -- End isfinited
  209. .text
  210. # -- Begin __isfinited
  211. .text
  212. .align 16,0x90
  213. .globl __isfinited
  214. __isfinited:
  215. # parameter 1: %xmm0
  216. ..B8.1:
  217. .cfi_startproc
  218. ..___tag_value___isfinited.22:
  219. ..L23:
  220. xorl %eax, %eax
  221. movsd %xmm0, -8(%rsp)
  222. movl -4(%rsp), %edx
  223. andl $2147483647, %edx
  224. cmpl $2146435072, %edx
  225. setb %al
  226. ret
  227. .align 16,0x90
  228. .cfi_endproc
  229. .type __isfinited,@function
  230. .size __isfinited,.-__isfinited
  231. .data
  232. # -- End __isfinited
  233. .text
  234. # -- Begin finitel
  235. .text
  236. .align 16,0x90
  237. .globl finitel
  238. finitel:
  239. # parameter 1: 8 + %rsp
  240. ..B9.1:
  241. .cfi_startproc
  242. ..___tag_value_finitel.25:
  243. ..L26:
  244. xorl %eax, %eax
  245. movzwl 16(%rsp), %ecx
  246. shll $16, %ecx
  247. movzwl 14(%rsp), %edx
  248. orl %edx, %ecx
  249. andl $2147483647, %ecx
  250. cmpl $2147418112, %ecx
  251. setb %al
  252. ret
  253. .align 16,0x90
  254. .cfi_endproc
  255. .type finitel,@function
  256. .size finitel,.-finitel
  257. .data
  258. # -- End finitel
  259. .text
  260. # -- Begin __finitel
  261. .text
  262. .align 16,0x90
  263. .globl __finitel
  264. __finitel:
  265. # parameter 1: 8 + %rsp
  266. ..B10.1:
  267. .cfi_startproc
  268. ..___tag_value___finitel.28:
  269. ..L29:
  270. xorl %eax, %eax
  271. movzwl 16(%rsp), %ecx
  272. shll $16, %ecx
  273. movzwl 14(%rsp), %edx
  274. orl %edx, %ecx
  275. andl $2147483647, %ecx
  276. cmpl $2147418112, %ecx
  277. setb %al
  278. ret
  279. .align 16,0x90
  280. .cfi_endproc
  281. .type __finitel,@function
  282. .size __finitel,.-__finitel
  283. .data
  284. # -- End __finitel
  285. .text
  286. # -- Begin finitef
  287. .text
  288. .align 16,0x90
  289. .globl finitef
  290. finitef:
  291. # parameter 1: %xmm0
  292. ..B11.1:
  293. .cfi_startproc
  294. ..___tag_value_finitef.31:
  295. ..L32:
  296. xorl %eax, %eax
  297. movd %xmm0, %edx
  298. andl $2147483647, %edx
  299. cmpl $2139095040, %edx
  300. setb %al
  301. ret
  302. .align 16,0x90
  303. .cfi_endproc
  304. .type finitef,@function
  305. .size finitef,.-finitef
  306. .data
  307. # -- End finitef
  308. .text
  309. # -- Begin __finitef
  310. .text
  311. .align 16,0x90
  312. .globl __finitef
  313. __finitef:
  314. # parameter 1: %xmm0
  315. ..B12.1:
  316. .cfi_startproc
  317. ..___tag_value___finitef.34:
  318. ..L35:
  319. xorl %eax, %eax
  320. movd %xmm0, %edx
  321. andl $2147483647, %edx
  322. cmpl $2139095040, %edx
  323. setb %al
  324. ret
  325. .align 16,0x90
  326. .cfi_endproc
  327. .type __finitef,@function
  328. .size __finitef,.-__finitef
  329. .data
  330. # -- End __finitef
  331. .text
  332. # -- Begin finite
  333. .text
  334. .align 16,0x90
  335. .globl finite
  336. finite:
  337. # parameter 1: %xmm0
  338. ..B13.1:
  339. .cfi_startproc
  340. ..___tag_value_finite.37:
  341. ..L38:
  342. xorl %eax, %eax
  343. movsd %xmm0, -8(%rsp)
  344. movl -4(%rsp), %edx
  345. andl $2147483647, %edx
  346. cmpl $2146435072, %edx
  347. setb %al
  348. ret
  349. .align 16,0x90
  350. .cfi_endproc
  351. .type finite,@function
  352. .size finite,.-finite
  353. .data
  354. # -- End finite
  355. .text
  356. # -- Begin __finite
  357. .text
  358. .align 16,0x90
  359. .globl __finite
  360. __finite:
  361. # parameter 1: %xmm0
  362. ..B14.1:
  363. .cfi_startproc
  364. ..___tag_value___finite.40:
  365. ..L41:
  366. xorl %eax, %eax
  367. movsd %xmm0, -8(%rsp)
  368. movl -4(%rsp), %edx
  369. andl $2147483647, %edx
  370. cmpl $2146435072, %edx
  371. setb %al
  372. ret
  373. .align 16,0x90
  374. .cfi_endproc
  375. .type __finite,@function
  376. .size __finite,.-__finite
  377. .data
  378. # -- End __finite
  379. .text
  380. # -- Begin finited
  381. .text
  382. .align 16,0x90
  383. .globl finited
  384. finited:
  385. # parameter 1: %xmm0
  386. ..B15.1:
  387. .cfi_startproc
  388. ..___tag_value_finited.43:
  389. ..L44:
  390. xorl %eax, %eax
  391. movsd %xmm0, -8(%rsp)
  392. movl -4(%rsp), %edx
  393. andl $2147483647, %edx
  394. cmpl $2146435072, %edx
  395. setb %al
  396. ret
  397. .align 16,0x90
  398. .cfi_endproc
  399. .type finited,@function
  400. .size finited,.-finited
  401. .data
  402. # -- End finited
  403. .text
  404. # -- Begin __finited
  405. .text
  406. .align 16,0x90
  407. .globl __finited
  408. __finited:
  409. # parameter 1: %xmm0
  410. ..B16.1:
  411. .cfi_startproc
  412. ..___tag_value___finited.46:
  413. ..L47:
  414. xorl %eax, %eax
  415. movsd %xmm0, -8(%rsp)
  416. movl -4(%rsp), %edx
  417. andl $2147483647, %edx
  418. cmpl $2146435072, %edx
  419. setb %al
  420. ret
  421. .align 16,0x90
  422. .cfi_endproc
  423. .type __finited,@function
  424. .size __finited,.-__finited
  425. .data
  426. # -- End __finited
  427. .data
  428. .section .note.GNU-stack, ""
  429. // -- Begin DWARF2 SEGMENT .eh_frame
  430. .section .eh_frame,"a",@progbits
  431. .eh_frame_seg:
  432. .align 1
  433. # End