123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723 |
- /*
- * 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 "libm_sinhl_k80.c"
- .text
- ..TXTST0:
- # -- Begin __libm_sinhl_k80
- .text
- .align 16,0x90
- .hidden __libm_sinhl_k80
- .globl __libm_sinhl_k80
- __libm_sinhl_k80:
- # parameter 1: 8 + %ebp
- # parameter 2: 20 + %ebp
- ..B1.1:
- ..L1:
- pushl %ebp
- movl %esp, %ebp
- andl $-16, %esp
- pushl %esi
- pushl %edi
- pushl %ebx
- subl $84, %esp
- movzwl 16(%ebp), %eax
- andl $32767, %eax
- movl 20(%ebp), %ebx
- cmpl $16405, %eax
- call ..L2
- ..L2:
- popl %esi
- lea _GLOBAL_OFFSET_TABLE_+[. - ..L2](%esi), %esi
- jge ..B1.17
- ..B1.2:
- cmpl $16382, %eax
- jge ..B1.13
- ..B1.3:
- fldt 8(%ebp)
- cmpl $16378, %eax
- jge ..B1.11
- ..B1.4:
- cmpl $16373, %eax
- jge ..B1.10
- ..B1.5:
- cmpl $16366, %eax
- jge ..B1.9
- ..B1.6:
- fstpt (%ebx)
- fldt (%ebx)
- cmpl $16308, %eax
- jge ..B1.8
- ..B1.7:
- fstp %st(0)
- fldt .L_2il0floatpacket.0@GOTOFF(%esi)
- fstpt 12(%ebx)
- fldt 12(%ebx)
- addl $84, %esp
- popl %ebx
- popl %edi
- popl %esi
- movl %ebp, %esp
- popl %ebp
- ret
- ..B1.8:
- fldt _Q3@GOTOFF(%esi)
- fmul %st(1), %st
- fmul %st(1), %st
- fmulp %st, %st(1)
- fstpt 12(%ebx)
- fldt .L_2il0floatpacket.0@GOTOFF(%esi)
- addl $84, %esp
- popl %ebx
- popl %edi
- popl %esi
- movl %ebp, %esp
- popl %ebp
- ret
- ..B1.9:
- fldt 12+_Q2@GOTOFF(%esi)
- fld %st(1)
- fmul %st(2), %st
- fmul %st, %st(1)
- fxch %st(2)
- fstpt (%ebx)
- fldt (%ebx)
- fldt _Q2@GOTOFF(%esi)
- faddp %st, %st(2)
- fxch %st(2)
- fmulp %st, %st(1)
- fmulp %st, %st(1)
- fstpt 12(%ebx)
- fldt .L_2il0floatpacket.0@GOTOFF(%esi)
- addl $84, %esp
- popl %ebx
- popl %edi
- popl %esi
- movl %ebp, %esp
- popl %ebp
- ret
- ..B1.10:
- fldt 36+_Q1@GOTOFF(%esi)
- fld %st(1)
- fmul %st(2), %st
- fld %st(0)
- fmul %st(1), %st
- fmul %st, %st(2)
- fxch %st(3)
- fstpt (%ebx)
- fldt (%ebx)
- fldt 12+_Q1@GOTOFF(%esi)
- faddp %st, %st(3)
- fxch %st(2)
- fmul %st(3), %st
- fldt 24+_Q1@GOTOFF(%esi)
- fmulp %st, %st(4)
- fldt _Q1@GOTOFF(%esi)
- faddp %st, %st(4)
- fxch %st(1)
- fmulp %st, %st(3)
- faddp %st, %st(2)
- fmulp %st, %st(1)
- fstpt 12(%ebx)
- fldt .L_2il0floatpacket.0@GOTOFF(%esi)
- addl $84, %esp
- popl %ebx
- popl %edi
- popl %esi
- movl %ebp, %esp
- popl %ebp
- ret
- ..B1.11:
- fldl _TWO_48H@GOTOFF(%esi)
- fld %st(1)
- fmul %st(2), %st
- fld %st(0)
- fmul %st(1), %st
- fld %st(3)
- fadd %st(3), %st
- fstpt 72(%esp)
- fxch %st(3)
- fstpt (%esp)
- fldt (%esp)
- fldt 72(%esp)
- fsubp %st, %st(3)
- fld %st(2)
- fld %st(1)
- fsub %st(4), %st
- fmul %st, %st(1)
- fmul %st, %st(2)
- fxch %st(2)
- faddp %st, %st(1)
- fxch %st(3)
- fstpt 16(%esp)
- fldt 16(%esp)
- fmul %st(0), %st
- fldt 84+_Q@GOTOFF(%esi)
- fmul %st(5), %st
- fldt 60+_Q@GOTOFF(%esi)
- faddp %st, %st(1)
- fmul %st(5), %st
- fldt 36+_Q@GOTOFF(%esi)
- faddp %st, %st(1)
- fmul %st(5), %st
- fldt 12+_Q@GOTOFF(%esi)
- faddp %st, %st(1)
- fmul %st(5), %st
- fldt 72+_Q@GOTOFF(%esi)
- fmul %st(6), %st
- fldt 48+_Q@GOTOFF(%esi)
- faddp %st, %st(1)
- fmul %st(6), %st
- fldt 24+_Q@GOTOFF(%esi)
- faddp %st, %st(1)
- fmulp %st, %st(6)
- fldt _Q@GOTOFF(%esi)
- faddp %st, %st(6)
- fxch %st(3)
- fmulp %st, %st(5)
- fxch %st(4)
- faddp %st, %st(2)
- fld %st(0)
- fldt 96+_Q@GOTOFF(%esi)
- fmul %st, %st(4)
- fxch %st(4)
- faddp %st, %st(3)
- fxch %st(3)
- fmulp %st, %st(4)
- fxch %st(2)
- fmul %st(3), %st
- fldt (%esp)
- fmulp %st, %st(2)
- faddp %st, %st(1)
- faddp %st, %st(1)
- fldt 16(%esp)
- fmul %st, %st(2)
- fld %st(0)
- fadd %st(3), %st
- fstpt (%ebx)
- fldt (%ebx)
- fsubrp %st, %st(1)
- faddp %st, %st(2)
- faddp %st, %st(1)
- fstpt 12(%ebx)
- fldt .L_2il0floatpacket.0@GOTOFF(%esi)
- ..B1.12:
- addl $84, %esp
- popl %ebx
- popl %edi
- popl %esi
- movl %ebp, %esp
- popl %ebp
- ret
- ..B1.13:
- fldt 8(%ebp)
- fldl _TWO_63H@GOTOFF(%esi)
- fldt _KLN2@GOTOFF(%esi)
- fldt _LN2K@GOTOFF(%esi)
- fldl _TWO_32@GOTOFF(%esi)
- movzbl 17(%ebp), %eax
- andl $128, %eax
- shrl $7, %eax
- fldl ones@GOTOFF(%esi,%eax,8)
- fmul %st, %st(5)
- fxch %st(3)
- fmul %st(5), %st
- fadd %st(4), %st
- fstpt 72(%esp)
- fxch %st(4)
- fstpt 8(%ebp)
- fldt 8(%ebp)
- fldt 72(%esp)
- movl 72(%esp), %eax
- fsubp %st, %st(4)
- fxch %st(1)
- fmul %st(3), %st
- movsbl %al, %ecx
- fsubrp %st, %st(1)
- fld %st(0)
- subl %ecx, %eax
- fldt 12+_LN2K@GOTOFF(%esi)
- fmulp %st, %st(4)
- movzwl 16(%ebp), %edx
- fsub %st(3), %st
- fldl _TWO_32P@GOTOFF(%esi)
- andl $32767, %edx
- fmul %st(1), %st
- fxch %st(5)
- fmulp %st, %st(1)
- sarl $8, %eax
- fsubrp %st, %st(4)
- fld %st(3)
- cmpl $16387, %edx
- fxch %st(1)
- fsub %st(4), %st
- fsubp %st, %st(3)
- fadd %st(2), %st
- fld %st(0)
- fmul %st(1), %st
- fldt 48+_P@GOTOFF(%esi)
- fmul %st(1), %st
- fldt 24+_P@GOTOFF(%esi)
- faddp %st, %st(1)
- fmul %st(1), %st
- fldt _P@GOTOFF(%esi)
- faddp %st, %st(1)
- fmul %st(1), %st
- fldt 36+_P@GOTOFF(%esi)
- fmul %st(2), %st
- fldt 12+_P@GOTOFF(%esi)
- faddp %st, %st(1)
- fmulp %st, %st(2)
- fxch %st(2)
- fmulp %st, %st(1)
- faddp %st, %st(3)
- jle ..B1.15
- ..B1.14:
- shll $4, %ecx
- decl %eax
- movl %eax, 64(%esp)
- faddp %st, %st(2)
- fildl 64(%esp)
- fldl 2056+__libm_expl_table_256@GOTOFF(%esi,%ecx)
- fldl 2048+__libm_expl_table_256@GOTOFF(%esi,%ecx)
- fld %st(0)
- fmul %st(5), %st
- fxch %st(5)
- fadd %st(6), %st
- fmul %st(2), %st
- faddp %st, %st(5)
- fmul %st, %st(5)
- fld %st(0)
- fadd %st(6), %st
- fsubr %st, %st(1)
- fxch %st(6)
- faddp %st, %st(1)
- faddp %st, %st(1)
- faddp %st, %st(3)
- fxch %st(1)
- fmul %st, %st(3)
- fxch %st(3)
- fstpt (%ebx)
- fxch %st(1)
- fmulp %st, %st(2)
- fxch %st(1)
- fstpt 12(%ebx)
- addl $84, %esp
- popl %ebx
- popl %edi
- popl %esi
- movl %ebp, %esp
- popl %ebp
- ret
- ..B1.15:
- je ..B1.20
- ..B1.16:
- fldt .L_2il0floatpacket.1@GOTOFF(%esi)
- lea -1(%eax), %edi
- shll $4, %ecx
- fstpt (%esp)
- fld %st(0)
- movl %edi, 64(%esp)
- movl %eax, %edi
- negl %edi
- fadd %st(3), %st
- fxch %st(3)
- fsubrp %st, %st(1)
- fxch %st(1)
- fstpt 16(%esp)
- fld %st(2)
- fldl 2056+__libm_expl_table_256@GOTOFF(%esi,%ecx)
- addl $16383, %edi
- fldl 2048+__libm_expl_table_256@GOTOFF(%esi,%ecx)
- negl %ecx
- fstpt 32(%esp)
- fldt 32(%esp)
- subl %eax, %edi
- movzwl 8+.L_2il0floatpacket.1@GOTOFF(%esi), %edx
- andl $32767, %edi
- andl $-32768, %edx
- fadd %st(1), %st
- fmulp %st, %st(4)
- fld %st(4)
- fmul %st(1), %st
- orl %edi, %edx
- faddp %st, %st(4)
- fldl 2056+__libm_expl_table_256@GOTOFF(%esi,%ecx)
- fldl 2048+__libm_expl_table_256@GOTOFF(%esi,%ecx)
- fld %st(0)
- movw %dx, 8(%esp)
- fadd %st(2), %st
- fmulp %st, %st(5)
- fld %st(6)
- fmul %st(2), %st
- fsubrp %st, %st(5)
- fxch %st(4)
- fstpt 48(%esp)
- fxch %st(3)
- fmul %st, %st(5)
- fldt 32(%esp)
- fmul %st, %st(3)
- fld %st(0)
- fadd %st(4), %st
- fsubr %st, %st(1)
- fxch %st(4)
- faddp %st, %st(1)
- faddp %st, %st(2)
- fxch %st(4)
- faddp %st, %st(1)
- fld %st(3)
- fsub %st(5), %st
- fsubr %st, %st(4)
- fxch %st(5)
- fsubrp %st, %st(4)
- fxch %st(3)
- faddp %st, %st(2)
- fld %st(0)
- fldt 48(%esp)
- faddp %st, %st(3)
- fldt (%esp)
- fmul %st, %st(5)
- fxch %st(1)
- fsub %st(5), %st
- fsubr %st, %st(2)
- fxch %st(5)
- fsubrp %st, %st(2)
- fmulp %st, %st(2)
- fxch %st(1)
- fsubrp %st, %st(2)
- faddp %st, %st(1)
- fldt 16(%esp)
- fmul %st, %st(2)
- fxch %st(2)
- fstpt (%ebx)
- fmulp %st, %st(1)
- fstpt 12(%ebx)
- fildl 64(%esp)
- addl $84, %esp
- popl %ebx
- popl %edi
- popl %esi
- movl %ebp, %esp
- popl %ebp
- ret
- ..B1.17:
- movzbl 17(%ebp), %edx
- andl $128, %edx
- shrl $7, %edx
- cmpl $32767, %eax
- je ..B1.23
- ..B1.18:
- fldt .L_2il0floatpacket.0@GOTOFF(%esi)
- lea (,%edx,8), %eax
- fstpt 12(%ebx)
- lea (%eax,%edx,4), %edx
- fldt _infs@GOTOFF(%esi,%edx)
- fstpt (%ebx)
- fldt _infs@GOTOFF(%esi)
- ..B1.19:
- addl $84, %esp
- popl %ebx
- popl %edi
- popl %esi
- movl %ebp, %esp
- popl %ebp
- ret
- ..B1.20:
- movl 12(%ebp), %edx
- cmpl $-782985146, %edx
- ja ..B1.14
- ..B1.21:
- jne ..B1.16
- ..B1.22:
- cmpl $1501741449, 8(%ebp)
- ja ..B1.14
- jmp ..B1.16
- ..B1.23:
- fldt 8(%ebp)
- fstpt (%ebx)
- fldt (%ebx)
- fmul %st(0), %st
- fldt .L_2il0floatpacket.0@GOTOFF(%esi)
- fstpt 12(%ebx)
- addl $84, %esp
- popl %ebx
- popl %edi
- popl %esi
- movl %ebp, %esp
- popl %ebp
- ret
- .align 16,0x90
- .type __libm_sinhl_k80,@function
- .size __libm_sinhl_k80,.-__libm_sinhl_k80
- .data
- # -- End __libm_sinhl_k80
- .section .rodata, "a"
- .align 16
- .align 16
- .L_2il0floatpacket.0:
- .byte 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
- .type .L_2il0floatpacket.0,@object
- .size .L_2il0floatpacket.0,12
- .space 4, 0x00 # pad
- .align 16
- .L_2il0floatpacket.1:
- .byte 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80,0xff,0x3f,0x00,0x00
- .type .L_2il0floatpacket.1,@object
- .size .L_2il0floatpacket.1,12
- .space 4, 0x00 # pad
- .align 8
- ones:
- .long 0x00000000,0x3ff00000
- .long 0x00000000,0xbff00000
- .type ones,@object
- .size ones,16
- .align 4
- _TWO_48H:
- .long 0
- .long 1123549184
- .type _TWO_48H,@object
- .size _TWO_48H,8
- .align 4
- _TWO_63H:
- .long 0
- .long 1139277824
- .type _TWO_63H,@object
- .size _TWO_63H,8
- .align 4
- _TWO_32:
- .long 0
- .long 1106247680
- .type _TWO_32,@object
- .size _TWO_32,8
- .align 4
- _TWO_32P:
- .long 1048576
- .long 1106247680
- .type _TWO_32P,@object
- .size _TWO_32P,8
- .align 2
- _Q3:
- .word 21845
- .word 44373
- .word 43690
- .word 43690
- .word 16380
- .word 0
- .type _Q3,@object
- .size _Q3,12
- .align 2
- _Q2:
- .word 29491
- .word 43690
- .word 43690
- .word 43690
- .word 16380
- .word 0
- .word 1838
- .word 3745
- .word 35050
- .word 34952
- .word 16376
- .word 0
- .type _Q2,@object
- .size _Q2,24
- .align 2
- _Q1:
- .word 43691
- .word 43690
- .word 43690
- .word 43690
- .word 16380
- .word 0
- .word 56472
- .word 34952
- .word 34952
- .word 34952
- .word 16376
- .word 0
- .word 6470
- .word 8609
- .word 207
- .word 53261
- .word 16370
- .word 0
- .word 51515
- .word 9159
- .word 10794
- .word 47344
- .word 16364
- .word 0
- .type _Q1,@object
- .size _Q1,48
- .align 2
- _Q:
- .word 43620
- .word 43690
- .word 43690
- .word 43690
- .word 16364
- .word 0
- .word 34953
- .word 34952
- .word 34952
- .word 34952
- .word 16376
- .word 0
- .word 52382
- .word 3328
- .word 208
- .word 53261
- .word 16370
- .word 0
- .word 44665
- .word 46658
- .word 7466
- .word 47343
- .word 16364
- .word 0
- .word 15678
- .word 35942
- .word 11071
- .word 55090
- .word 16357
- .word 0
- .word 10412
- .word 23121
- .word 12507
- .word 45202
- .word 16350
- .word 0
- .word 37213
- .word 41879
- .word 65084
- .word 55102
- .word 16342
- .word 0
- .word 1721
- .word 42148
- .word 19309
- .word 52099
- .word 16334
- .word 0
- .word 0
- .word 0
- .word 0
- .word 43690
- .word 16380
- .word 0
- .type _Q,@object
- .size _Q,108
- .align 2
- _KLN2:
- .word 61628
- .word 23575
- .word 15145
- .word 47274
- .word 16391
- .word 0
- .type _KLN2,@object
- .size _KLN2,12
- .align 2
- _LN2K:
- .word 0
- .word 0
- .word 6134
- .word 45426
- .word 16374
- .word 0
- .word 55756
- .word 58609
- .word 48341
- .word 59623
- .word 16343
- .word 0
- .type _LN2K,@object
- .size _LN2K,24
- .align 2
- _P:
- .word 0
- .word 0
- .word 0
- .word 32768
- .word 16382
- .word 0
- .word 10558
- .word 43680
- .word 43690
- .word 43690
- .word 16380
- .word 0
- .word 59664
- .word 43680
- .word 43690
- .word 43690
- .word 16378
- .word 0
- .word 56450
- .word 15979
- .word 35652
- .word 34952
- .word 16376
- .word 0
- .word 7105
- .word 47411
- .word 25657
- .word 46603
- .word 16373
- .word 0
- .type _P,@object
- .size _P,60
- .align 2
- _infs:
- .word 0
- .word 0
- .word 0
- .word 32768
- .word 32767
- .word 0
- .word 0
- .word 0
- .word 0
- .word 32768
- .word 65535
- .word 0
- .type _infs,@object
- .size _infs,24
- .data
- .hidden __libm_expl_table_256
- .section .note.GNU-stack, ""
- # End
|