123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694 |
- /*
- * 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 "csinhl.c"
- .text
- ..TXTST0:
- # -- Begin csinhl
- .text
- .align 16,0x90
- .globl csinhl
- csinhl:
- # parameter 1: 336 + %rsp
- ..B1.1:
- .cfi_startproc
- ..___tag_value_csinhl.1:
- ..L2:
- pushq %r13
- .cfi_def_cfa_offset 16
- .cfi_offset 13, -16
- pushq %r14
- .cfi_def_cfa_offset 24
- .cfi_offset 14, -24
- pushq %r15
- .cfi_def_cfa_offset 32
- .cfi_offset 15, -32
- pushq %rbx
- .cfi_def_cfa_offset 40
- .cfi_offset 3, -40
- subq $296, %rsp
- .cfi_def_cfa_offset 336
- xorb %r15b, %r15b
- fldt .L_2il0floatpacket.6(%rip)
- movq %fs:40, %rax
- xorq %rsp, %rax
- movq %rax, 288(%rsp)
- fstpt 96(%rsp)
- fldt 96(%rsp)
- fstpt 256(%rsp)
- fldt 256(%rsp)
- fstpt 272(%rsp)
- ..B1.2:
- fnstcw 114(%rsp)
- ..B1.3:
- movzwl 114(%rsp), %edx
- movl %edx, %eax
- andl $768, %eax
- cmpl $768, %eax
- je ..B1.7
- ..B1.4:
- orl $-64768, %edx
- movw %dx, 112(%rsp)
- ..B1.5:
- fldcw 112(%rsp)
- ..B1.6:
- movb $1, %r15b
- ..B1.7:
- movzwl 344(%rsp), %r13d
- andl $32767, %r13d
- cmpl $32767, %r13d
- jge ..B1.33
- ..B1.8:
- testl %r13d, %r13d
- jle ..B1.51
- ..B1.9:
- movzwl 360(%rsp), %ebx
- andl $32767, %ebx
- cmpl $32767, %ebx
- jge ..B1.33
- ..B1.10:
- testl %ebx, %ebx
- jle ..B1.49
- ..B1.11:
- cmpl $16398, %r13d
- jl ..B1.20
- ..B1.12:
- fldt 336(%rsp)
- lea _CONSTANTS(%rip), %rax
- fldt 352(%rsp)
- fstpt 16(%rsp)
- fldt 16(%rsp)
- fldt (%rax)
- fmul %st(0), %st
- fmul %st, %st(2)
- fxch %st(2)
- fstpt (%rsp)
- addq $-16, %rsp
- .cfi_def_cfa_offset 352
- fstpt (%rsp)
- fstpt 48(%rsp)
- call cosl@PLT
- ..B1.59:
- fldt 48(%rsp)
- addq $16, %rsp
- .cfi_def_cfa_offset 336
- fldt (%rsp)
- testl %ebx, %ebx
- fmulp %st, %st(2)
- fxch %st(1)
- fstpt 256(%rsp)
- jle ..B1.14
- ..B1.13:
- addq $-16, %rsp
- .cfi_def_cfa_offset 352
- fldt 32(%rsp)
- fstpt (%rsp)
- fstpt 48(%rsp)
- call sinl@PLT
- ..B1.60:
- fldt 48(%rsp)
- addq $16, %rsp
- .cfi_def_cfa_offset 336
- fmulp %st, %st(1)
- jmp ..B1.15
- ..B1.14:
- fldt 16(%rsp)
- fmulp %st, %st(1)
- ..B1.15:
- fstpt 272(%rsp)
- testb %r15b, %r15b
- je ..B1.17
- ..B1.16:
- fldcw 114(%rsp)
- ..B1.17:
- movq 288(%rsp), %rax
- xorq %rsp, %rax
- cmpq %fs:40, %rax
- jne ..B1.48
- ..B1.18:
- fldt 256(%rsp)
- fldt 272(%rsp)
- movq 288(%rsp), %rax
- xorq %rsp, %rax
- cmpq %fs:40, %rax
- jne ..B1.47
- ..B1.19:
- addq $296, %rsp
- .cfi_def_cfa_offset 40
- .cfi_restore 3
- popq %rbx
- .cfi_def_cfa_offset 32
- .cfi_restore 15
- popq %r15
- .cfi_def_cfa_offset 24
- .cfi_restore 14
- popq %r14
- .cfi_def_cfa_offset 16
- .cfi_restore 13
- popq %r13
- .cfi_def_cfa_offset 8
- fxch %st(1)
- ret
- .cfi_def_cfa_offset 336
- .cfi_offset 3, -40
- .cfi_offset 13, -16
- .cfi_offset 14, -24
- .cfi_offset 15, -32
- ..B1.20:
- addq $-16, %rsp
- .cfi_def_cfa_offset 352
- fldt 352(%rsp)
- lea 176(%rsp), %rdi
- fstpt (%rsp)
- ..___tag_value_csinhl.31:
- call __libm_coshl_k80@PLT
- ..___tag_value_csinhl.32:
- ..B1.61:
- addq $16, %rsp
- .cfi_def_cfa_offset 336
- ..B1.21:
- fldt 176(%rsp)
- lea 48+_CONSTANTS(%rip), %r14
- fldt .L_2il0floatpacket.7(%rip)
- movzwl 344(%rsp), %eax
- andl $32767, %eax
- fldt (%r14)
- cmpl $16183, %eax
- fadd %st, %st(3)
- fxch %st(3)
- fstpt (%rsp)
- fldt 160(%rsp)
- fld %st(0)
- movl (%rsp), %r14d
- fadd %st(3), %st
- fmul %st, %st(2)
- fld %st(0)
- fsubr %st(3), %st
- fsubrp %st, %st(3)
- fxch %st(2)
- fstpt 32(%rsp)
- fldt 32(%rsp)
- fxch %st(1)
- fsubr %st(2), %st
- fsubrp %st, %st(3)
- fsubrp %st, %st(1)
- faddp %st, %st(1)
- jge ..B1.23
- ..B1.22:
- fstp %st(1)
- fldt 336(%rsp)
- lea 32+_CONSTANTS(%rip), %r13
- fldt 96(%rsp)
- lea 208(%rsp), %rdx
- fstpt (%rdx)
- fldt (%r13)
- fmulp %st, %st(1)
- fstpt -16(%rdx)
- movzwl -8(%rdx), %eax
- movl %eax, %r13d
- andl $-32768, %eax
- andl $32767, %r13d
- orl $-49153, %eax
- addl $-16639, %r13d
- movw %ax, -8(%rdx)
- jmp ..B1.25
- ..B1.23:
- addq $-16, %rsp
- .cfi_def_cfa_offset 352
- fldt 352(%rsp)
- lea 208(%rsp), %rdi
- fstpt (%rsp)
- fxch %st(1)
- fstpt 16(%rsp)
- fstpt 64(%rsp)
- ..___tag_value_csinhl.35:
- call __libm_sinhl_k80@PLT
- ..___tag_value_csinhl.36:
- ..B1.62:
- fldt 64(%rsp)
- fldt 16(%rsp)
- addq $16, %rsp
- .cfi_def_cfa_offset 336
- ..B1.24:
- faddp %st, %st(2)
- fxch %st(1)
- fstpt (%rsp)
- lea 208(%rsp), %rdx
- movl (%rsp), %r13d
- ..B1.25:
- fldt 192(%rsp)
- fld %st(0)
- fldt (%rdx)
- fadd %st, %st(1)
- fld %st(1)
- fxch %st(2)
- fsub %st, %st(3)
- fxch %st(3)
- fsubrp %st, %st(1)
- fldt .L_2il0floatpacket.7(%rip)
- fmul %st(3), %st
- fsub %st, %st(2)
- fsubp %st, %st(2)
- fxch %st(1)
- fstpt 64(%rsp)
- fldt 64(%rsp)
- addq $-16, %rsp
- .cfi_def_cfa_offset 352
- fsubrp %st, %st(2)
- faddp %st, %st(1)
- fldt 368(%rsp)
- fstpt (%rsp)
- lea 240(%rsp), %rdi
- fstpt 96(%rsp)
- fstpt 64(%rsp)
- ..___tag_value_csinhl.39:
- call __libm_cosl_k80@PLT
- ..___tag_value_csinhl.40:
- ..B1.63:
- fldt 64(%rsp)
- fldt 96(%rsp)
- addq $16, %rsp
- .cfi_def_cfa_offset 336
- ..B1.26:
- fldt 224(%rsp)
- lea 16+_CONSTANTS(%rip), %rax
- fld %st(0)
- fldt 240(%rsp)
- movzwl 360(%rsp), %edx
- fadd %st, %st(1)
- fld %st(1)
- andl $32767, %edx
- cmpl $16183, %edx
- fxch %st(2)
- fsub %st, %st(3)
- fxch %st(3)
- fsubrp %st, %st(1)
- fldt .L_2il0floatpacket.7(%rip)
- fmul %st(3), %st
- fsub %st, %st(2)
- fsubp %st, %st(2)
- fxch %st(1)
- fsubr %st, %st(2)
- fxch %st(1)
- faddp %st, %st(2)
- fmul %st(4), %st
- fxch %st(1)
- fmulp %st, %st(4)
- fldt (%rax)
- faddp %st, %st(1)
- jge ..B1.28
- ..B1.27:
- fldt 352(%rsp)
- lea 32+_CONSTANTS(%rip), %rbx
- fldt 96(%rsp)
- fstpt 144(%rsp)
- fldt (%rbx)
- fmulp %st, %st(1)
- fstpt 128(%rsp)
- movzwl 136(%rsp), %eax
- movl %eax, %ebx
- andl $-32768, %eax
- andl $32767, %ebx
- orl $-49153, %eax
- addl $-16639, %ebx
- movw %ax, 136(%rsp)
- fldt 128(%rsp)
- jmp ..B1.30
- ..B1.28:
- addq $-16, %rsp
- .cfi_def_cfa_offset 352
- fldt 368(%rsp)
- lea 144(%rsp), %rdi
- fstpt (%rsp)
- fxch %st(3)
- fstpt 16(%rsp)
- fstpt -48(%rdi)
- fxch %st(1)
- fstpt -112(%rdi)
- fstpt -80(%rdi)
- ..___tag_value_csinhl.43:
- call __libm_sinl_k80@PLT
- ..___tag_value_csinhl.44:
- ..B1.64:
- fldt 64(%rsp)
- fldt 32(%rsp)
- fldt 96(%rsp)
- fldt 16(%rsp)
- addq $16, %rsp
- .cfi_def_cfa_offset 336
- ..B1.29:
- fldt 128(%rsp)
- xorl %ebx, %ebx
- fmul %st(5), %st
- fstpt 128(%rsp)
- fldt 128(%rsp)
- fldt 144(%rsp)
- fmulp %st, %st(6)
- fxch %st(5)
- fstpt 96(%rsp)
- fldt 96(%rsp)
- fstpt 144(%rsp)
- fxch %st(4)
- fxch %st(2)
- fxch %st(1)
- fxch %st(2)
- ..B1.30:
- fldt 96(%rsp)
- fld %st(1)
- movl %r13d, %edi
- fadd %st(1), %st
- fsub %st, %st(2)
- fxch %st(2)
- fsubrp %st, %st(1)
- fld %st(1)
- fldt .L_2il0floatpacket.7(%rip)
- fmul %st(3), %st
- fsub %st, %st(1)
- fsubp %st, %st(1)
- fstpt (%rsp)
- fldt (%rsp)
- fsubrp %st, %st(2)
- faddp %st, %st(1)
- fld %st(2)
- fmul %st(5), %st
- fldt 64(%rsp)
- addq $-32, %rsp
- .cfi_def_cfa_offset 368
- fld %st(0)
- fmul %st(4), %st
- fstpt (%rsp)
- fmulp %st, %st(6)
- faddp %st, %st(5)
- fxch %st(2)
- fmulp %st, %st(1)
- faddp %st, %st(3)
- fxch %st(2)
- fstpt 16(%rsp)
- fxch %st(1)
- fstpt 48(%rsp)
- fstpt 80(%rsp)
- ..___tag_value_csinhl.47:
- call __libm_scalbl_k80@PLT
- ..___tag_value_csinhl.48:
- ..B1.65:
- fldt 80(%rsp)
- fldt 48(%rsp)
- addq $32, %rsp
- .cfi_def_cfa_offset 336
- ..B1.31:
- fldt (%rsp)
- fld %st(2)
- fmul %st(2), %st
- addl %ebx, %r14d
- fxch %st(4)
- fstpt 256(%rsp)
- movl %r14d, %edi
- fldt 32(%rsp)
- addq $-32, %rsp
- .cfi_def_cfa_offset 368
- fld %st(0)
- fmul %st(2), %st
- fstpt (%rsp)
- fmulp %st, %st(2)
- fxch %st(1)
- faddp %st, %st(3)
- fmulp %st, %st(1)
- faddp %st, %st(1)
- fstpt 16(%rsp)
- ..___tag_value_csinhl.51:
- call __libm_scalbl_k80@PLT
- ..___tag_value_csinhl.52:
- ..B1.66:
- addq $32, %rsp
- .cfi_def_cfa_offset 336
- ..B1.32:
- fstpt 272(%rsp)
- jmp ..B1.42
- ..B1.33:
- cmpq $0, 352(%rsp)
- jne ..B1.35
- ..B1.34:
- addq $-16, %rsp
- .cfi_def_cfa_offset 352
- fldt 352(%rsp)
- fstpt (%rsp)
- call sinhl@PLT
- ..B1.67:
- addq $16, %rsp
- .cfi_def_cfa_offset 336
- fldt 352(%rsp)
- fstpt 272(%rsp)
- fstpt 256(%rsp)
- jmp ..B1.42
- ..B1.35:
- movzwl 360(%rsp), %ebx
- andl $32767, %ebx
- cmpl $32767, %ebx
- jge ..B1.38
- ..B1.36:
- fldt 336(%rsp)
- fstpt 32(%rsp)
- fldt 32(%rsp)
- addq $-16, %rsp
- .cfi_def_cfa_offset 352
- fstpt (%rsp)
- call sinhl@PLT
- ..B1.69:
- fstpt 16(%rsp)
- addq $16, %rsp
- .cfi_def_cfa_offset 336
- fldt 352(%rsp)
- fstpt 16(%rsp)
- fldt 16(%rsp)
- addq $-16, %rsp
- .cfi_def_cfa_offset 352
- fstpt (%rsp)
- call cosl@PLT
- ..B1.68:
- addq $16, %rsp
- .cfi_def_cfa_offset 336
- fldt (%rsp)
- testl %ebx, %ebx
- fmulp %st, %st(1)
- fstpt 256(%rsp)
- jle ..B1.53
- ..B1.37:
- addq $-16, %rsp
- .cfi_def_cfa_offset 352
- fldt 48(%rsp)
- fstpt (%rsp)
- call coshl@PLT
- ..B1.71:
- fstpt 16(%rsp)
- fldt 32(%rsp)
- fstpt (%rsp)
- call sinl@PLT
- ..B1.70:
- addq $16, %rsp
- .cfi_def_cfa_offset 336
- fldt (%rsp)
- fmulp %st, %st(1)
- fstpt 272(%rsp)
- jmp ..B1.42
- ..B1.38:
- addq $-16, %rsp
- .cfi_def_cfa_offset 352
- fldt 368(%rsp)
- fstpt (%rsp)
- call sinl@PLT
- ..B1.72:
- addq $16, %rsp
- .cfi_def_cfa_offset 336
- fstpt 272(%rsp)
- fldt 272(%rsp)
- cmpl $32767, %r13d
- je ..B1.40
- ..B1.39:
- cmpq $0, 336(%rsp)
- jne ..B1.41
- ..B1.40:
- fstp %st(0)
- addq $-16, %rsp
- .cfi_def_cfa_offset 352
- fldt 352(%rsp)
- fstpt (%rsp)
- call sinhl@PLT
- ..B1.73:
- addq $16, %rsp
- .cfi_def_cfa_offset 336
- fstpt 256(%rsp)
- jmp ..B1.42
- ..B1.41:
- fldt 336(%rsp)
- fmulp %st, %st(1)
- fstpt 256(%rsp)
- ..B1.42:
- testb %r15b, %r15b
- je ..B1.44
- ..B1.43:
- fldcw 114(%rsp)
- ..B1.44:
- movq 288(%rsp), %rax
- xorq %rsp, %rax
- cmpq %fs:40, %rax
- jne ..B1.48
- ..B1.45:
- fldt 256(%rsp)
- fldt 272(%rsp)
- movq 288(%rsp), %rax
- xorq %rsp, %rax
- cmpq %fs:40, %rax
- jne ..B1.47
- ..B1.46:
- addq $296, %rsp
- .cfi_def_cfa_offset 40
- .cfi_restore 3
- popq %rbx
- .cfi_def_cfa_offset 32
- .cfi_restore 15
- popq %r15
- .cfi_def_cfa_offset 24
- .cfi_restore 14
- popq %r14
- .cfi_def_cfa_offset 16
- .cfi_restore 13
- popq %r13
- .cfi_def_cfa_offset 8
- fxch %st(1)
- ret
- .cfi_def_cfa_offset 336
- .cfi_offset 3, -40
- .cfi_offset 13, -16
- .cfi_offset 14, -24
- .cfi_offset 15, -32
- ..B1.47:
- fstp %st(1)
- fstp %st(0)
- call __stack_chk_fail@PLT
- ..B1.48:
- call __stack_chk_fail@PLT
- ..B1.49:
- cmpl $0, 356(%rsp)
- jne ..B1.11
- ..B1.50:
- cmpl $0, 352(%rsp)
- jne ..B1.11
- jmp ..B1.33
- ..B1.51:
- cmpl $0, 340(%rsp)
- jne ..B1.9
- ..B1.52:
- cmpl $0, 336(%rsp)
- jne ..B1.9
- jmp ..B1.33
- ..B1.53:
- cmpq $0, 336(%rsp)
- je ..B1.37
- ..B1.54:
- addq $-16, %rsp
- .cfi_def_cfa_offset 352
- fldt 48(%rsp)
- fstpt (%rsp)
- call coshl@PLT
- ..B1.74:
- addq $16, %rsp
- .cfi_def_cfa_offset 336
- fldt 16(%rsp)
- fmulp %st, %st(1)
- fstpt 272(%rsp)
- jmp ..B1.42
- .align 16,0x90
- .cfi_endproc
- .type csinhl,@function
- .size csinhl,.-csinhl
- .data
- # -- End csinhl
- .section .rodata, "a"
- .align 16
- .align 16
- .L_2il0floatpacket.6:
- .byte 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
- .type .L_2il0floatpacket.6,@object
- .size .L_2il0floatpacket.6,16
- .align 16
- .L_2il0floatpacket.7:
- .byte 0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x80,0x20,0x40,0x00,0x00,0x00,0x00,0x00,0x00
- .type .L_2il0floatpacket.7,@object
- .size .L_2il0floatpacket.7,16
- .align 2
- _CONSTANTS:
- .word 0
- .word 0
- .word 0
- .word 32768
- .word 32766
- .word 0
- .word 0
- .word 0
- .word 0
- .word 0
- .word 0
- .word 32768
- .word 1
- .word 0
- .word 0
- .word 0
- .word 0
- .word 0
- .word 0
- .word 32768
- .word 16639
- .word 0
- .word 0
- .word 0
- .word 0
- .word 0
- .word 0
- .word 49152
- .word 16446
- .word 0
- .word 0
- .word 0
- .type _CONSTANTS,@object
- .size _CONSTANTS,64
- .data
- .section .note.GNU-stack, ""
- // -- Begin DWARF2 SEGMENT .eh_frame
- .section .eh_frame,"a",@progbits
- .eh_frame_seg:
- .align 1
- # End
|