123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210 |
- /*
- * Math library
- *
- * Copyright (C) 2016 Intel Corporation. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- *
- * * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * * Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in
- * the documentation and/or other materials provided with the
- * distribution.
- * * Neither the name of Intel Corporation nor the names of its
- * contributors may be used to endorse or promote products derived
- * from this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
- * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
- * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
- * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- *
- *
- * Author Name <jingwei.zhang@intel.com>
- * History:
- * 03-14-2016 Initial version. numerics svn rev. 12864
- */
- .file "casinl.c"
- .text
- ..TXTST0:
- # -- Begin casinl
- .text
- .align 16,0x90
- .globl casinl
- casinl:
- # parameter 1: 12 + %ebp
- ..B1.1:
- ..L1:
- pushl %ebp
- movl %esp, %ebp
- andl $-16, %esp
- pushl %esi
- pushl %edi
- pushl %ebx
- subl $116, %esp
- call ..L2
- ..L2:
- popl %ebx
- lea _GLOBAL_OFFSET_TABLE_+[. - ..L2](%ebx), %ebx
- movl %gs:20, %edx
- movl 8(%ebp), %esi
- xorl %esp, %edx
- fldt .L_2il0floatpacket.8@GOTOFF(%ebx)
- movl %edx, 100(%esp)
- fstpt 4(%esp)
- fldt 4(%esp)
- fstpt 16(%esp)
- fldt 16(%esp)
- fstpt 28(%esp)
- fldt 28(%esp)
- fstpt 40(%esp)
- fldt 40(%esp)
- fstpt 52(%esp)
- fldt 52(%esp)
- fstpt 64(%esp)
- ..B1.2:
- fnstcw 2(%esp)
- ..B1.3:
- movzwl 2(%esp), %ecx
- movl %ecx, %edx
- andl $768, %edx
- cmpl $768, %edx
- je ..B1.20
- ..B1.4:
- orl $-64768, %ecx
- movw %cx, (%esp)
- ..B1.5:
- fldcw (%esp)
- ..B1.6:
- movl $1, %edi
- ..B1.7:
- fldt 24(%ebp)
- movzwl 32(%ebp), %edx
- andl $32767, %edx
- fstpt 52(%esp)
- cmpl $32767, %edx
- fldt 12(%ebp)
- fstpt 64(%esp)
- jl ..B1.10
- ..B1.8:
- cmpl $-2147483648, 28(%ebp)
- jne ..B1.11
- ..B1.9:
- cmpl $0, 24(%ebp)
- jne ..B1.11
- ..B1.10:
- movzbl 33(%ebp), %ecx
- notl %ecx
- movzbl 61(%esp), %edx
- andl $128, %ecx
- andl $127, %edx
- orl %ecx, %edx
- movb %dl, 61(%esp)
- ..B1.11:
- addl $-32, %esp
- lea 108(%esp), %ecx
- movl %ecx, (%esp)
- lea 4(%esp), %edx
- movl -24(%ecx), %ecx
- movl %ecx, (%edx)
- movl 88(%esp), %ecx
- movl %ecx, 4(%edx)
- movl 92(%esp), %ecx
- movl %ecx, 8(%edx)
- movl 96(%esp), %ecx
- movl %ecx, 12(%edx)
- movl 100(%esp), %ecx
- movl %ecx, 16(%edx)
- movl 104(%esp), %ecx
- movl %ecx, 20(%edx)
- call casinhl@PLT
- ..B1.23:
- addl $28, %esp
- fldt 76(%esp)
- movzwl 84(%esp), %edx
- andl $32767, %edx
- fstpt 4(%esp)
- fldt 4(%esp)
- cmpl $32767, %edx
- fstpt 40(%esp)
- fldt 88(%esp)
- fstpt 16(%esp)
- fldt 16(%esp)
- fstpt 28(%esp)
- jl ..B1.14
- ..B1.12:
- cmpl $-2147483648, 8(%esp)
- jne ..B1.15
- ..B1.13:
- cmpl $0, 4(%esp)
- jne ..B1.15
- ..B1.14:
- movzbl 13(%esp), %ecx
- notl %ecx
- movzbl 49(%esp), %edx
- andl $128, %ecx
- andl $127, %edx
- orl %ecx, %edx
- movb %dl, 49(%esp)
- ..B1.15:
- testl %edi, %edi
- je ..B1.17
- ..B1.16:
- fldcw 2(%esp)
- ..B1.17:
- movl 28(%esp), %edx
- movl %edx, (%esi)
- movl 40(%esp), %edx
- movl %edx, 12(%esi)
- movl 44(%esp), %edx
- movl %edx, 16(%esi)
- movl 32(%esp), %ecx
- movl 36(%esp), %edi
- movl 48(%esp), %edx
- movl %ecx, 4(%esi)
- movl %edi, 8(%esi)
- movl %edx, 20(%esi)
- movl 100(%esp), %edx
- xorl %esp, %edx
- cmpl %gs:20, %edx
- jne ..B1.19
- ..B1.18:
- movl %esi, %eax
- addl $116, %esp
- popl %ebx
- popl %edi
- popl %esi
- movl %ebp, %esp
- popl %ebp
- ret $4
- ..B1.19:
- call __stack_chk_fail@PLT
- ..B1.20:
- xorl %edi, %edi
- jmp ..B1.7
- .align 16,0x90
- .type casinl,@function
- .size casinl,.-casinl
- .data
- # -- End casinl
- .section .rodata, "a"
- .align 16
- .align 16
- .L_2il0floatpacket.8:
- .byte 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
- .type .L_2il0floatpacket.8,@object
- .size .L_2il0floatpacket.8,12
- .data
- .section .note.GNU-stack, ""
- # End
|