123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779 |
- /*
- * 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 "sin_wmt.c"
- .text
- ..TXTST0:
- # -- Begin static_func
- .text
- .align 16,0x90
- static_func:
- ..B1.1:
- ..L1:
- call ..L2
- ..L2:
- popl %eax
- lea _GLOBAL_OFFSET_TABLE_+[. - ..L2](%eax), %eax
- lea static_const_table@GOTOFF(%eax), %eax
- ret
- .align 16,0x90
- .type static_func,@function
- .size static_func,.-static_func
- .data
- # -- End static_func
- .text
- # -- Begin sin
- .text
- .align 16,0x90
- .globl sin
- sin:
- # parameter 1: 8 + %ebp
- ..B2.1:
- ..L3:
- ..B2.2:
- pushl %ebp
- movl %esp, %ebp
- subl $120, %esp
- movl %ebx, 56(%esp)
- call static_func
- movl %eax, %ebx
- movsd 128(%esp), %xmm0
- pextrw $3, %xmm0, %eax
- andl $32767, %eax
- subl $12336, %eax
- cmpl $4293, %eax
- ja .L_2TAG_PACKET_0.0.2
- movsd 2160(%ebx), %xmm1
- mulsd %xmm0, %xmm1
- movsd 2272(%ebx), %xmm5
- movapd 2256(%ebx), %xmm4
- andpd %xmm0, %xmm4
- orps %xmm4, %xmm5
- movsd 2128(%ebx), %xmm3
- movapd 2112(%ebx), %xmm2
- addpd %xmm5, %xmm1
- cvttsd2si %xmm1, %edx
- cvtsi2sdl %edx, %xmm1
- mulsd %xmm1, %xmm3
- unpcklpd %xmm1, %xmm1
- addl $1865216, %edx
- movapd %xmm0, %xmm4
- andl $63, %edx
- movapd 2096(%ebx), %xmm5
- lea (%ebx), %eax
- shll $5, %edx
- addl %edx, %eax
- mulpd %xmm1, %xmm2
- subsd %xmm3, %xmm0
- mulsd 2144(%ebx), %xmm1
- subsd %xmm3, %xmm4
- movsd 8(%eax), %xmm7
- unpcklpd %xmm0, %xmm0
- movapd %xmm4, %xmm3
- subsd %xmm2, %xmm4
- mulpd %xmm0, %xmm5
- subpd %xmm2, %xmm0
- movapd 2064(%ebx), %xmm6
- mulsd %xmm4, %xmm7
- subsd %xmm4, %xmm3
- mulpd %xmm0, %xmm5
- mulpd %xmm0, %xmm0
- subsd %xmm2, %xmm3
- movapd (%eax), %xmm2
- subsd %xmm3, %xmm1
- movsd 24(%eax), %xmm3
- addsd %xmm3, %xmm2
- subsd %xmm2, %xmm7
- mulsd %xmm4, %xmm2
- mulpd %xmm0, %xmm6
- mulsd %xmm4, %xmm3
- mulpd %xmm0, %xmm2
- mulpd %xmm0, %xmm0
- addpd 2080(%ebx), %xmm5
- mulsd (%eax), %xmm4
- addpd 2048(%ebx), %xmm6
- mulpd %xmm0, %xmm5
- movapd %xmm3, %xmm0
- addsd 8(%eax), %xmm3
- mulpd %xmm7, %xmm1
- movapd %xmm4, %xmm7
- addsd %xmm3, %xmm4
- addpd %xmm5, %xmm6
- movsd 8(%eax), %xmm5
- subsd %xmm3, %xmm5
- subsd %xmm4, %xmm3
- addsd 16(%eax), %xmm1
- mulpd %xmm2, %xmm6
- addsd %xmm0, %xmm5
- addsd %xmm7, %xmm3
- addsd %xmm5, %xmm1
- addsd %xmm3, %xmm1
- addsd %xmm6, %xmm1
- unpckhpd %xmm6, %xmm6
- addsd %xmm6, %xmm1
- addsd %xmm1, %xmm4
- movsd %xmm4, (%esp)
- fldl (%esp)
- jmp .L_2TAG_PACKET_1.0.2
- .L_2TAG_PACKET_0.0.2:
- jg .L_2TAG_PACKET_2.0.2
- shrl $4, %eax
- cmpl $268434685, %eax
- jne .L_2TAG_PACKET_3.0.2
- movsd %xmm0, (%esp)
- fldl (%esp)
- jmp .L_2TAG_PACKET_1.0.2
- .L_2TAG_PACKET_3.0.2:
- movsd 2192(%ebx), %xmm3
- mulsd %xmm0, %xmm3
- subsd %xmm0, %xmm3
- mulsd 2208(%ebx), %xmm3
- movsd %xmm0, (%esp)
- fldl (%esp)
- jmp .L_2TAG_PACKET_1.0.2
- .L_2TAG_PACKET_2.0.2:
- movl 132(%esp), %eax
- andl $2146435072, %eax
- cmpl $2146435072, %eax
- je .L_2TAG_PACKET_4.0.2
- subl $32, %esp
- movsd %xmm0, (%esp)
- lea 40(%esp), %eax
- movl %eax, 8(%esp)
- movl $2, %eax
- movl %eax, 12(%esp)
- call __libm_sincos_huge
- addl $32, %esp
- fldl 16(%esp)
- jmp .L_2TAG_PACKET_1.0.2
- .L_2TAG_PACKET_4.0.2:
- fldl 128(%esp)
- fmull 2240(%ebx)
- .L_2TAG_PACKET_1.0.2:
- movl 56(%esp), %ebx
- movl %ebp, %esp
- popl %ebp
- ret
- ..B2.3:
- .align 16,0x90
- .type sin,@function
- .size sin,.-sin
- .data
- # -- End sin
- .section .rodata, "a"
- .align 16
- .align 16
- static_const_table:
- .long 0
- .long 0
- .long 0
- .long 0
- .long 0
- .long 0
- .long 0
- .long 1072693248
- .long 393047345
- .long 3212032302
- .long 3156849708
- .long 1069094822
- .long 3758096384
- .long 3158189848
- .long 0
- .long 1072693248
- .long 18115067
- .long 3214126342
- .long 1013556747
- .long 1070135480
- .long 3221225472
- .long 3160567065
- .long 0
- .long 1072693248
- .long 2476548698
- .long 3215330282
- .long 785751814
- .long 1070765062
- .long 2684354560
- .long 3161838221
- .long 0
- .long 1072693248
- .long 2255197647
- .long 3216211105
- .long 2796464483
- .long 1071152610
- .long 3758096384
- .long 3160878317
- .long 0
- .long 1072693248
- .long 1945768569
- .long 3216915048
- .long 939980347
- .long 1071524701
- .long 536870912
- .long 1012796809
- .long 0
- .long 1072693248
- .long 1539668340
- .long 3217396327
- .long 967731400
- .long 1071761211
- .long 536870912
- .long 1015752157
- .long 0
- .long 1072693248
- .long 1403757309
- .long 3217886718
- .long 621354454
- .long 1071926515
- .long 536870912
- .long 1013450602
- .long 0
- .long 1072693248
- .long 2583490354
- .long 1070236281
- .long 1719614413
- .long 1072079006
- .long 536870912
- .long 3163282740
- .long 0
- .long 1071644672
- .long 2485417816
- .long 1069626316
- .long 1796544321
- .long 1072217216
- .long 536870912
- .long 3162686945
- .long 0
- .long 1071644672
- .long 2598800519
- .long 1068266419
- .long 688824739
- .long 1072339814
- .long 3758096384
- .long 1010431536
- .long 0
- .long 1071644672
- .long 2140183630
- .long 3214756396
- .long 4051746225
- .long 1072445618
- .long 2147483648
- .long 3161907377
- .long 0
- .long 1071644672
- .long 1699043957
- .long 3216902261
- .long 3476196678
- .long 1072533611
- .long 536870912
- .long 1014257638
- .long 0
- .long 1071644672
- .long 1991047213
- .long 1067753521
- .long 1455828442
- .long 1072602945
- .long 3758096384
- .long 1015505073
- .long 0
- .long 1070596096
- .long 240740309
- .long 3215727903
- .long 3489094832
- .long 1072652951
- .long 536870912
- .long 1014325783
- .long 0
- .long 1070596096
- .long 257503056
- .long 3214647653
- .long 2748392742
- .long 1072683149
- .long 1073741824
- .long 3163061750
- .long 0
- .long 1069547520
- .long 0
- .long 0
- .long 0
- .long 1072693248
- .long 0
- .long 0
- .long 0
- .long 0
- .long 257503056
- .long 1067164005
- .long 2748392742
- .long 1072683149
- .long 1073741824
- .long 3163061750
- .long 0
- .long 3217031168
- .long 240740309
- .long 1068244255
- .long 3489094832
- .long 1072652951
- .long 536870912
- .long 1014325783
- .long 0
- .long 3218079744
- .long 1991047213
- .long 3215237169
- .long 1455828442
- .long 1072602945
- .long 3758096384
- .long 1015505073
- .long 0
- .long 3218079744
- .long 1699043957
- .long 1069418613
- .long 3476196678
- .long 1072533611
- .long 536870912
- .long 1014257638
- .long 0
- .long 3219128320
- .long 2140183630
- .long 1067272748
- .long 4051746225
- .long 1072445618
- .long 2147483648
- .long 3161907377
- .long 0
- .long 3219128320
- .long 2598800519
- .long 3215750067
- .long 688824739
- .long 1072339814
- .long 3758096384
- .long 1010431536
- .long 0
- .long 3219128320
- .long 2485417816
- .long 3217109964
- .long 1796544321
- .long 1072217216
- .long 536870912
- .long 3162686945
- .long 0
- .long 3219128320
- .long 2583490354
- .long 3217719929
- .long 1719614413
- .long 1072079006
- .long 536870912
- .long 3163282740
- .long 0
- .long 3219128320
- .long 1403757309
- .long 1070403070
- .long 621354454
- .long 1071926515
- .long 536870912
- .long 1013450602
- .long 0
- .long 3220176896
- .long 1539668340
- .long 1069912679
- .long 967731400
- .long 1071761211
- .long 536870912
- .long 1015752157
- .long 0
- .long 3220176896
- .long 1945768569
- .long 1069431400
- .long 939980347
- .long 1071524701
- .long 536870912
- .long 1012796809
- .long 0
- .long 3220176896
- .long 2255197647
- .long 1068727457
- .long 2796464483
- .long 1071152610
- .long 3758096384
- .long 3160878317
- .long 0
- .long 3220176896
- .long 2476548698
- .long 1067846634
- .long 785751814
- .long 1070765062
- .long 2684354560
- .long 3161838221
- .long 0
- .long 3220176896
- .long 18115067
- .long 1066642694
- .long 1013556747
- .long 1070135480
- .long 3221225472
- .long 3160567065
- .long 0
- .long 3220176896
- .long 393047345
- .long 1064548654
- .long 3156849708
- .long 1069094822
- .long 3758096384
- .long 3158189848
- .long 0
- .long 3220176896
- .long 0
- .long 0
- .long 0
- .long 0
- .long 0
- .long 0
- .long 0
- .long 3220176896
- .long 393047345
- .long 1064548654
- .long 3156849708
- .long 3216578470
- .long 3758096384
- .long 1010706200
- .long 0
- .long 3220176896
- .long 18115067
- .long 1066642694
- .long 1013556747
- .long 3217619128
- .long 3221225472
- .long 1013083417
- .long 0
- .long 3220176896
- .long 2476548698
- .long 1067846634
- .long 785751814
- .long 3218248710
- .long 2684354560
- .long 1014354573
- .long 0
- .long 3220176896
- .long 2255197647
- .long 1068727457
- .long 2796464483
- .long 3218636258
- .long 3758096384
- .long 1013394669
- .long 0
- .long 3220176896
- .long 1945768569
- .long 1069431400
- .long 939980347
- .long 3219008349
- .long 536870912
- .long 3160280457
- .long 0
- .long 3220176896
- .long 1539668340
- .long 1069912679
- .long 967731400
- .long 3219244859
- .long 536870912
- .long 3163235805
- .long 0
- .long 3220176896
- .long 1403757309
- .long 1070403070
- .long 621354454
- .long 3219410163
- .long 536870912
- .long 3160934250
- .long 0
- .long 3220176896
- .long 2583490354
- .long 3217719929
- .long 1719614413
- .long 3219562654
- .long 536870912
- .long 1015799092
- .long 0
- .long 3219128320
- .long 2485417816
- .long 3217109964
- .long 1796544321
- .long 3219700864
- .long 536870912
- .long 1015203297
- .long 0
- .long 3219128320
- .long 2598800519
- .long 3215750067
- .long 688824739
- .long 3219823462
- .long 3758096384
- .long 3157915184
- .long 0
- .long 3219128320
- .long 2140183630
- .long 1067272748
- .long 4051746225
- .long 3219929266
- .long 2147483648
- .long 1014423729
- .long 0
- .long 3219128320
- .long 1699043957
- .long 1069418613
- .long 3476196678
- .long 3220017259
- .long 536870912
- .long 3161741286
- .long 0
- .long 3219128320
- .long 1991047213
- .long 3215237169
- .long 1455828442
- .long 3220086593
- .long 3758096384
- .long 3162988721
- .long 0
- .long 3218079744
- .long 240740309
- .long 1068244255
- .long 3489094832
- .long 3220136599
- .long 536870912
- .long 3161809431
- .long 0
- .long 3218079744
- .long 257503056
- .long 1067164005
- .long 2748392742
- .long 3220166797
- .long 1073741824
- .long 1015578102
- .long 0
- .long 3217031168
- .long 0
- .long 0
- .long 0
- .long 3220176896
- .long 0
- .long 0
- .long 0
- .long 0
- .long 257503056
- .long 3214647653
- .long 2748392742
- .long 3220166797
- .long 1073741824
- .long 1015578102
- .long 0
- .long 1069547520
- .long 240740309
- .long 3215727903
- .long 3489094832
- .long 3220136599
- .long 536870912
- .long 3161809431
- .long 0
- .long 1070596096
- .long 1991047213
- .long 1067753521
- .long 1455828442
- .long 3220086593
- .long 3758096384
- .long 3162988721
- .long 0
- .long 1070596096
- .long 1699043957
- .long 3216902261
- .long 3476196678
- .long 3220017259
- .long 536870912
- .long 3161741286
- .long 0
- .long 1071644672
- .long 2140183630
- .long 3214756396
- .long 4051746225
- .long 3219929266
- .long 2147483648
- .long 1014423729
- .long 0
- .long 1071644672
- .long 2598800519
- .long 1068266419
- .long 688824739
- .long 3219823462
- .long 3758096384
- .long 3157915184
- .long 0
- .long 1071644672
- .long 2485417816
- .long 1069626316
- .long 1796544321
- .long 3219700864
- .long 536870912
- .long 1015203297
- .long 0
- .long 1071644672
- .long 2583490354
- .long 1070236281
- .long 1719614413
- .long 3219562654
- .long 536870912
- .long 1015799092
- .long 0
- .long 1071644672
- .long 1403757309
- .long 3217886718
- .long 621354454
- .long 3219410163
- .long 536870912
- .long 3160934250
- .long 0
- .long 1072693248
- .long 1539668340
- .long 3217396327
- .long 967731400
- .long 3219244859
- .long 536870912
- .long 3163235805
- .long 0
- .long 1072693248
- .long 1945768569
- .long 3216915048
- .long 939980347
- .long 3219008349
- .long 536870912
- .long 3160280457
- .long 0
- .long 1072693248
- .long 2255197647
- .long 3216211105
- .long 2796464483
- .long 3218636258
- .long 3758096384
- .long 1013394669
- .long 0
- .long 1072693248
- .long 2476548698
- .long 3215330282
- .long 785751814
- .long 3218248710
- .long 2684354560
- .long 1014354573
- .long 0
- .long 1072693248
- .long 18115067
- .long 3214126342
- .long 1013556747
- .long 3217619128
- .long 3221225472
- .long 1013083417
- .long 0
- .long 1072693248
- .long 393047345
- .long 3212032302
- .long 3156849708
- .long 3216578470
- .long 3758096384
- .long 1010706200
- .long 0
- .long 1072693248
- .long 1431655765
- .long 3217380693
- .long 0
- .long 3219128320
- .long 286331153
- .long 1065423121
- .long 1431655765
- .long 1067799893
- .long 436314138
- .long 3207201184
- .long 381774871
- .long 3210133868
- .long 2773927732
- .long 1053236707
- .long 436314138
- .long 1056571808
- .long 442499072
- .long 1032893537
- .long 442499072
- .long 1032893537
- .long 1413480448
- .long 1069097467
- .long 0
- .long 0
- .long 771977331
- .long 996350346
- .long 0
- .long 0
- .long 1841940611
- .long 1076125488
- .long 0
- .long 0
- .long 0
- .long 1127743488
- .long 0
- .long 0
- .long 0
- .long 1130364928
- .long 0
- .long 0
- .long 0
- .long 1015021568
- .long 0
- .long 0
- .long 4294967295
- .long 1072693247
- .long 0
- .long 0
- .long 0
- .long 2147483648
- .long 0
- .long 0
- .long 0
- .long 2147483648
- .long 0
- .long 2147483648
- .long 0
- .long 1071644672
- .long 0
- .long 1071644672
- .type static_const_table,@object
- .size static_const_table,2288
- .data
- .hidden __libm_sincos_huge
- .section .note.GNU-stack, ""
- # End
|