123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635 |
- /*
- * 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 "erfcf.c"
- .text
- ..TXTST0:
- # -- Begin erfcf
- .text
- .align 16,0x90
- .globl erfcf
- erfcf:
- # parameter 1: 8 + %ebp
- ..B1.1:
- ..L1:
- pushl %ebp
- movl %esp, %ebp
- andl $-64, %esp
- pushl %edi
- pushl %ebx
- subl $56, %esp
- movl 8(%ebp), %edi
- movl %edi, %eax
- andl $2147483647, %eax
- shrl $31, %edi
- call ..L2
- ..L2:
- popl %ebx
- lea _GLOBAL_OFFSET_TABLE_+[. - ..L2](%ebx), %ebx
- cmpl $2139095040, %eax
- jae ..B1.24
- ..B1.2:
- cmpl range@GOTOFF(%ebx,%edi,4), %eax
- jae ..B1.21
- ..B1.3:
- cmpl $1081081856, %eax
- jae ..B1.15
- ..B1.4:
- cmpl $1073741824, %eax
- jae ..B1.11
- ..B1.5:
- cmpl $1056964608, %eax
- jae ..B1.10
- ..B1.6:
- flds 8(%ebp)
- cmpl $847249408, %eax
- jae ..B1.8
- ..B1.7:
- fld1
- fsubp %st, %st(1)
- addl $56, %esp
- popl %ebx
- popl %edi
- movl %ebp, %esp
- popl %ebp
- ret
- ..B1.8:
- fldl 40+_A@GOTOFF(%ebx)
- fld %st(1)
- fmul %st(2), %st
- fld %st(0)
- fmul %st(1), %st
- fmul %st, %st(2)
- fld1
- fxch %st(3)
- faddl 24+_A@GOTOFF(%ebx)
- fmul %st(1), %st
- fldl 48+_A@GOTOFF(%ebx)
- fmul %st(2), %st
- fxch %st(1)
- faddl 8+_A@GOTOFF(%ebx)
- fmulp %st, %st(3)
- fxch %st(2)
- fmul %st(4), %st
- faddp %st, %st(3)
- fxch %st(1)
- faddl 32+_A@GOTOFF(%ebx)
- fmul %st(1), %st
- faddl 16+_A@GOTOFF(%ebx)
- fmulp %st, %st(1)
- faddl _A@GOTOFF(%ebx)
- fmulp %st, %st(2)
- faddp %st, %st(1)
- ..B1.9:
- addl $56, %esp
- popl %ebx
- popl %edi
- movl %ebp, %esp
- popl %ebp
- ret
- ..B1.10:
- flds 8(%ebp)
- fabs
- fld1
- fsubrp %st, %st(1)
- fld %st(0)
- fmul %st(1), %st
- fldl 48+_AP@GOTOFF(%ebx)
- fmul %st(1), %st
- fldl 56+_AP@GOTOFF(%ebx)
- fmul %st(2), %st
- fxch %st(1)
- faddl 32+_AP@GOTOFF(%ebx)
- fmul %st(2), %st
- fxch %st(1)
- faddl 40+_AP@GOTOFF(%ebx)
- fmul %st(2), %st
- fxch %st(1)
- faddl 16+_AP@GOTOFF(%ebx)
- fmul %st(2), %st
- fxch %st(1)
- faddl 24+_AP@GOTOFF(%ebx)
- fmul %st(2), %st
- fxch %st(1)
- faddl _AP@GOTOFF(%ebx)
- fldl 48+_AQ@GOTOFF(%ebx)
- fmul %st(3), %st
- fxch %st(2)
- faddl 8+_AP@GOTOFF(%ebx)
- fmul %st(4), %st
- faddp %st, %st(1)
- fldl 56+_AQ@GOTOFF(%ebx)
- fmul %st(3), %st
- fxch %st(2)
- faddl 32+_AQ@GOTOFF(%ebx)
- fmul %st(3), %st
- fxch %st(2)
- faddl 40+_AQ@GOTOFF(%ebx)
- fmul %st(3), %st
- fxch %st(2)
- faddl 16+_AQ@GOTOFF(%ebx)
- fmul %st(3), %st
- fxch %st(2)
- faddl 24+_AQ@GOTOFF(%ebx)
- fmulp %st, %st(3)
- fxch %st(1)
- faddl _AQ@GOTOFF(%ebx)
- fxch %st(2)
- faddl 8+_AQ@GOTOFF(%ebx)
- fmulp %st, %st(3)
- fxch %st(2)
- faddp %st, %st(1)
- fdivrp %st, %st(1)
- fmuls _ones@GOTOFF(%ebx,%edi,4)
- faddl _erfc1@GOTOFF(%ebx,%edi,8)
- addl $56, %esp
- popl %ebx
- popl %edi
- movl %ebp, %esp
- popl %ebp
- ret
- ..B1.11:
- flds 8(%ebp)
- testl %edi, %edi
- fabs
- faddl .L_2il0floatpacket.2@GOTOFF(%ebx)
- fld %st(0)
- fmul %st(1), %st
- je ..B1.13
- ..B1.12:
- fldl 48+_BP1@GOTOFF(%ebx)
- fmul %st(1), %st
- fldl 40+_BP1@GOTOFF(%ebx)
- fmul %st(2), %st
- fxch %st(1)
- faddl 32+_BP1@GOTOFF(%ebx)
- fmul %st(2), %st
- fxch %st(1)
- faddl 24+_BP1@GOTOFF(%ebx)
- fmul %st(2), %st
- fxch %st(1)
- faddl 16+_BP1@GOTOFF(%ebx)
- fmul %st(2), %st
- fxch %st(1)
- faddl 8+_BP1@GOTOFF(%ebx)
- fmul %st(3), %st
- fxch %st(1)
- faddl _BP1@GOTOFF(%ebx)
- fldl 48+_BQ1@GOTOFF(%ebx)
- fmul %st(3), %st
- fldl 40+_BQ1@GOTOFF(%ebx)
- fmul %st(4), %st
- fxch %st(1)
- faddl 32+_BQ1@GOTOFF(%ebx)
- fmul %st(4), %st
- fxch %st(1)
- faddl 24+_BQ1@GOTOFF(%ebx)
- fmul %st(4), %st
- fxch %st(1)
- faddl 16+_BQ1@GOTOFF(%ebx)
- fmulp %st, %st(4)
- faddl 8+_BQ1@GOTOFF(%ebx)
- fmulp %st, %st(4)
- fxch %st(2)
- faddl _BQ1@GOTOFF(%ebx)
- fxch %st(2)
- jmp ..B1.14
- ..B1.13:
- fldl 80+_BP2@GOTOFF(%ebx)
- fmul %st(1), %st
- fldl 88+_BP2@GOTOFF(%ebx)
- fmul %st(2), %st
- fxch %st(1)
- faddl 64+_BP2@GOTOFF(%ebx)
- fmul %st(2), %st
- fxch %st(1)
- faddl 72+_BP2@GOTOFF(%ebx)
- fmul %st(2), %st
- fxch %st(1)
- faddl 48+_BP2@GOTOFF(%ebx)
- fmul %st(2), %st
- fxch %st(1)
- faddl 56+_BP2@GOTOFF(%ebx)
- fmul %st(2), %st
- fxch %st(1)
- faddl 32+_BP2@GOTOFF(%ebx)
- fmul %st(2), %st
- fxch %st(1)
- faddl 40+_BP2@GOTOFF(%ebx)
- fmul %st(2), %st
- fxch %st(1)
- faddl 16+_BP2@GOTOFF(%ebx)
- fmul %st(2), %st
- fxch %st(1)
- faddl 24+_BP2@GOTOFF(%ebx)
- fmul %st(2), %st
- fxch %st(1)
- faddl _BP2@GOTOFF(%ebx)
- fldl 64+_BQ2@GOTOFF(%ebx)
- fmul %st(3), %st
- fxch %st(2)
- faddl 8+_BP2@GOTOFF(%ebx)
- fmul %st(4), %st
- fxch %st(2)
- faddl 48+_BQ2@GOTOFF(%ebx)
- fmul %st(3), %st
- fldl 56+_BQ2@GOTOFF(%ebx)
- fmul %st(4), %st
- fxch %st(1)
- faddl 32+_BQ2@GOTOFF(%ebx)
- fmul %st(4), %st
- fxch %st(1)
- faddl 40+_BQ2@GOTOFF(%ebx)
- fmul %st(4), %st
- fxch %st(1)
- faddl 16+_BQ2@GOTOFF(%ebx)
- fmul %st(4), %st
- fxch %st(1)
- faddl 24+_BQ2@GOTOFF(%ebx)
- fmulp %st, %st(4)
- faddl _BQ2@GOTOFF(%ebx)
- fxch %st(3)
- faddl 8+_BQ2@GOTOFF(%ebx)
- fmulp %st, %st(4)
- ..B1.14:
- faddp %st, %st(1)
- fxch %st(2)
- faddp %st, %st(1)
- fdivrp %st, %st(1)
- fmuls _ones@GOTOFF(%ebx,%edi,4)
- faddl _erfc4@GOTOFF(%ebx,%edi,8)
- addl $56, %esp
- popl %ebx
- popl %edi
- movl %ebp, %esp
- popl %ebp
- ret
- ..B1.15:
- flds 8(%ebp)
- fabs
- fld1
- fdiv %st(1), %st
- fstpl 24(%esp)
- fmul %st(0), %st
- fchs
- fstpl (%esp)
- call __libm_exp_k32
- ..B1.16:
- fldl 24(%esp)
- testl %edi, %edi
- fmul %st, %st(1)
- fmul %st(0), %st
- fld %st(0)
- fmul %st(1), %st
- fldl 56+_R1@GOTOFF(%ebx)
- fmul %st(1), %st
- fldl 48+_R1@GOTOFF(%ebx)
- fmul %st(2), %st
- fxch %st(1)
- faddl 40+_R1@GOTOFF(%ebx)
- fmul %st(2), %st
- fxch %st(1)
- faddl 32+_R1@GOTOFF(%ebx)
- fmul %st(2), %st
- fxch %st(1)
- faddl 24+_R1@GOTOFF(%ebx)
- fmul %st(2), %st
- fxch %st(1)
- faddl 16+_R1@GOTOFF(%ebx)
- fmulp %st, %st(2)
- faddl 8+_R1@GOTOFF(%ebx)
- fmulp %st, %st(2)
- faddl _R1@GOTOFF(%ebx)
- faddp %st, %st(1)
- fmulp %st, %st(1)
- jne ..B1.20
- ..B1.17:
- fsts 20(%esp)
- cmpl $8388608, 20(%esp)
- jl ..B1.28
- ..B1.19:
- addl $56, %esp
- popl %ebx
- popl %edi
- movl %ebp, %esp
- popl %ebp
- ret
- ..B1.20:
- fsubrs .L_2il0floatpacket.0@GOTOFF(%ebx)
- addl $56, %esp
- popl %ebx
- popl %edi
- movl %ebp, %esp
- popl %ebp
- ret
- ..B1.21:
- testl %edi, %edi
- je ..B1.29
- ..B1.22:
- flds .L_2il0floatpacket.0@GOTOFF(%ebx)
- ..B1.23:
- addl $56, %esp
- popl %ebx
- popl %edi
- movl %ebp, %esp
- popl %ebp
- ret
- ..B1.24:
- jne ..B1.26
- ..B1.25:
- flds zero_two@GOTOFF(%ebx,%edi,4)
- addl $56, %esp
- popl %ebx
- popl %edi
- movl %ebp, %esp
- popl %ebp
- ret
- ..B1.26:
- flds 8(%ebp)
- ..B1.27:
- addl $56, %esp
- popl %ebx
- popl %edi
- movl %ebp, %esp
- popl %ebp
- ret
- ..B1.28:
- fstp %st(0)
- flds .L_2il0floatpacket.1@GOTOFF(%ebx)
- fmul %st(0), %st
- fstps 16(%esp)
- flds 20(%esp)
- addl $56, %esp
- popl %ebx
- popl %edi
- movl %ebp, %esp
- popl %ebp
- ret
- ..B1.29:
- flds .L_2il0floatpacket.1@GOTOFF(%ebx)
- fmul %st(0), %st
- fsts 20(%esp)
- addl $56, %esp
- popl %ebx
- popl %edi
- movl %ebp, %esp
- popl %ebp
- ret
- .align 16,0x90
- .type erfcf,@function
- .size erfcf,.-erfcf
- .data
- # -- End erfcf
- .section .rodata, "a"
- .align 8
- .align 8
- .L_2il0floatpacket.2:
- .long 0x00000000,0xc0000000
- .type .L_2il0floatpacket.2,@object
- .size .L_2il0floatpacket.2,8
- .align 4
- .L_2il0floatpacket.0:
- .long 0x40000000
- .type .L_2il0floatpacket.0,@object
- .size .L_2il0floatpacket.0,4
- .align 4
- .L_2il0floatpacket.1:
- .long 0x0d800000
- .type .L_2il0floatpacket.1,@object
- .size .L_2il0floatpacket.1,4
- .align 4
- range:
- .long 1092825907
- .long 1081791557
- .type range,@object
- .size range,8
- .align 4
- _A:
- .long 1346541978
- .long 3220311511
- .long 1794662342
- .long 1071125108
- .long 250944106
- .long 3216827122
- .long 215131671
- .long 1067156170
- .long 548330146
- .long 3212141823
- .long 76350191
- .long 1061937114
- .long 2772654316
- .long 3206307213
- .type _A,@object
- .size _A,56
- .align 4
- _AP:
- .long 4064916629
- .long 3190878451
- .long 2877165718
- .long 3218164236
- .long 2764139057
- .long 1068232842
- .long 168293639
- .long 3215329394
- .long 881203975
- .long 3215292554
- .long 342818617
- .long 1065638313
- .long 817546319
- .long 3212004140
- .long 1510911299
- .long 3202390104
- .type _AP,@object
- .size _AP,64
- .align 4
- _AQ:
- .long 1883560946
- .long 1071960885
- .long 853592313
- .long 1071685196
- .long 191605458
- .long 1071250674
- .long 2183121159
- .long 1070390698
- .long 3347411101
- .long 1068928985
- .long 273856425
- .long 1067608207
- .long 671820230
- .long 1065177551
- .long 2414119437
- .long 1063328696
- .type _AQ,@object
- .size _AQ,64
- .align 4
- _ones:
- .long 1065353216
- .long 3212836864
- .type _ones,@object
- .size _ones,8
- .align 4
- _erfc1:
- .long 1879048192
- .long 1069818465
- .long 3523215360
- .long 1073576883
- .type _erfc1,@object
- .size _erfc1,16
- .align 4
- _BP1:
- .long 4019088381
- .long 1060143686
- .long 4231883845
- .long 3209038463
- .long 1510730124
- .long 1061755778
- .long 2929202078
- .long 3208591153
- .long 1409179897
- .long 1059475758
- .long 439372548
- .long 3204538649
- .long 3357266387
- .long 1053229132
- .type _BP1,@object
- .size _BP1,56
- .align 4
- _BQ1:
- .long 3444570556
- .long 1068208773
- .long 4145425017
- .long 1069029647
- .long 1145740212
- .long 1069192522
- .long 2413502193
- .long 1068797491
- .long 2712383784
- .long 1068007659
- .long 3941762314
- .long 1066743858
- .long 3272105283
- .long 1065447630
- .type _BQ1,@object
- .size _BQ1,56
- .align 4
- _BP2:
- .long 3138848853
- .long 1062211012
- .long 544119287
- .long 3211644465
- .long 2662071917
- .long 1064935492
- .long 2106254088
- .long 3212505578
- .long 377059754
- .long 1064517936
- .long 3523110848
- .long 3210978388
- .long 64932799
- .long 1062023575
- .long 2232373525
- .long 3207568747
- .long 3004568351
- .long 1057518327
- .long 1553969795
- .long 3201939481
- .long 865068135
- .long 1050709866
- .long 348213498
- .long 3193161330
- .type _BP2,@object
- .size _BP2,96
- .align 4
- _BQ2:
- .long 2220299070
- .long 1070256111
- .long 1607355279
- .long 1069737707
- .long 3222185356
- .long 1069664669
- .long 1988590515
- .long 1068489586
- .long 2612211906
- .long 1067468794
- .long 3802943557
- .long 1065572613
- .long 4286646379
- .long 1063895282
- .long 45248763
- .long 1061257684
- .long 3494068347
- .long 1058887001
- .type _BQ2,@object
- .size _BQ2,72
- .align 4
- _erfc4:
- .long 0
- .long 1045463040
- .long 4225761280
- .long 1073741823
- .type _erfc4,@object
- .size _erfc4,16
- .align 4
- _R1:
- .long 1340517714
- .long 1071779287
- .long 1760660317
- .long 3218214358
- .long 3277598851
- .long 1071322187
- .long 1776282588
- .long 3220235438
- .long 2229586924
- .long 1074588991
- .long 2042215417
- .long 3224150558
- .long 1374528972
- .long 1078534706
- .long 1825320511
- .long 3227067102
- .type _R1,@object
- .size _R1,64
- .align 4
- zero_two:
- .long 0x00000000
- .long 0x40000000
- .type zero_two,@object
- .size zero_two,8
- .data
- .hidden __libm_exp_k32
- .section .note.GNU-stack, ""
- # End
|