1 Star 1 Fork 1

life/RISC-V-math-library

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
log1p.S 18.95 KB
一键复制 编辑 原始数据 按行查看 历史
life 提交于 2022-07-06 09:26 . function
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804
.section .rodata, "a", "progbits"
.align 4
.section .text, "ax", "progbits"
.align 4
.section .rodata
.align 4
$databegin:
.dword 0xbfe0000000000000
.dword 0x3fd55555555030bd
.dword 0xbfcffffffff2b6c9
.dword 0x3fc999b507695009
.dword 0xbfc55570c32834fd
.dword 0x3ff0000000000000
.dword 0xbfd00000000000b8
.dword 0x3fbc7171962371db
.dword 0x3fd55555555555a8
.dword 0xbfc000001fbcbf56
.dword 0x3fc24924ab58eabc
.dword 0xbfb5988c2a983eec
.dword 0xbfc55555554afda5
.dword 0x3fb788ff29274a73
.dword 0x3fc999999992f6d5
.dword 0xbfb9993b2ed5abd9
.dword 0x3ff0000000000000
.dword 0x3ff0000000000000
.dword 0x0000000000000000
.dword 0x0000000000000000
.dword 0x3ff0200000000000
.dword 0x3fefc07f01fc07f0
.dword 0x3f7fe02a6b100000
.dword 0x3d19e23f0dda40e4
.dword 0x3ff0400000000000
.dword 0x3fef81f81f81f820
.dword 0x3f8fc0a8b0fc0000
.dword 0x3cdf1e7cf6d3a69c
.dword 0x3ff0600000000000
.dword 0x3fef44659e4a4271
.dword 0x3f97b91b07d60000
.dword 0xbd33b955b602ace4
.dword 0x3ff0800000000000
.dword 0x3fef07c1f07c1f08
.dword 0x3f9f829b0e780000
.dword 0x3d2980267c7e09e4
.dword 0x3ff0a00000000000
.dword 0x3feecc07b301ecc0
.dword 0x3fa39e87b9fe8000
.dword 0x3d3eafd480ad9015
.dword 0x3ff0c00000000000
.dword 0x3fee9131abf0b767
.dword 0x3fa77458f6330000
.dword 0xbd3181dce586af09
.dword 0x3ff0e00000000000
.dword 0x3fee573ac901e574
.dword 0x3fab42dd71198000
.dword 0xbd1c827ae5d6704c
.dword 0x3ff1000000000000
.dword 0x3fee1e1e1e1e1e1e
.dword 0x3faf0a30c0118000
.dword 0xbd2d599e83368e91
.dword 0x3ff1200000000000
.dword 0x3fede5d6e3f8868a
.dword 0x3fb16536eea38000
.dword 0xbd147c5e768fa309
.dword 0x3ff1400000000000
.dword 0x3fedae6076b981db
.dword 0x3fb341d7961bc000
.dword 0x3d31d09299837610
.dword 0x3ff1600000000000
.dword 0x3fed77b654b82c34
.dword 0x3fb51b073f060000
.dword 0x3d383f69278e686a
.dword 0x3ff1800000000000
.dword 0x3fed41d41d41d41d
.dword 0x3fb6f0d28ae58000
.dword 0xbd34b4641b664613
.dword 0x3ff1a00000000000
.dword 0x3fed0cb58f6ec074
.dword 0x3fb8c345d6318000
.dword 0x3d3b20f5acb42a66
.dword 0x3ff1c00000000000
.dword 0x3fecd85689039b0b
.dword 0x3fba926d3a4ac000
.dword 0x3d3563650bd22a9c
.dword 0x3ff1e00000000000
.dword 0x3feca4b3055ee191
.dword 0x3fbc5e548f5bc000
.dword 0x3d1d0c57585fbe06
.dword 0x3ff2000000000000
.dword 0x3fec71c71c71c71c
.dword 0x3fbe27076e2b0000
.dword 0xbd2a342c2af0003c
.dword 0x3ff2200000000000
.dword 0x3fec3f8f01c3f8f0
.dword 0x3fbfec9131dc0000
.dword 0xbd354555d1ae6607
.dword 0x3ff2400000000000
.dword 0x3fec0e070381c0e0
.dword 0x3fc0d77e7cd08000
.dword 0x3d3cb2cd2ee2f482
.dword 0x3ff2600000000000
.dword 0x3febdd2b899406f7
.dword 0x3fc1b72ad52f6000
.dword 0x3d2e80a41811a396
.dword 0x3ff2800000000000
.dword 0x3febacf914c1bad0
.dword 0x3fc29552f8200000
.dword 0xbd35b967f4471dfc
.dword 0x3ff2a00000000000
.dword 0x3feb7d6c3dda338b
.dword 0x3fc371fc201e8000
.dword 0x3d3ee8779b2d8abc
.dword 0x3ff2c00000000000
.dword 0x3feb4e81b4e81b4f
.dword 0x3fc44d2b6ccb8000
.dword 0xbd170cc16135783c
.dword 0x3ff2e00000000000
.dword 0x3feb2036406c80d9
.dword 0x3fc526e5e3a1c000
.dword 0xbd3790ba37fc5238
.dword 0x3ff3000000000000
.dword 0x3feaf286bca1af28
.dword 0x3fc5ff3070a7a000
.dword 0xbd38586f183bebf2
.dword 0x3ff3200000000000
.dword 0x3feac5701ac5701b
.dword 0x3fc6d60fe719e000
.dword 0xbd3bc6e557134767
.dword 0x3ff3400000000000
.dword 0x3fea98ef606a63be
.dword 0x3fc7ab890210e000
.dword 0xbd2bdb9072534a58
.dword 0x3ff3600000000000
.dword 0x3fea6d01a6d01a6d
.dword 0x3fc87fa06520c000
.dword 0x3d322120401202fc
.dword 0x3ff3800000000000
.dword 0x3fea41a41a41a41a
.dword 0x3fc9525a9cf46000
.dword 0xbd3297137d9f158f
.dword 0x3ff3a00000000000
.dword 0x3fea16d3f97a4b02
.dword 0x3fca23bc1fe2c000
.dword 0xbd3539cd91dc9f0b
.dword 0x3ff3c00000000000
.dword 0x3fe9ec8e951033d9
.dword 0x3fcaf3c94e80c000
.dword 0xbcba4e633fcd9066
.dword 0x3ff3e00000000000
.dword 0x3fe9c2d14ee4a102
.dword 0x3fcbc286742d8000
.dword 0x3d39ac53f39d121c
.dword 0x3ff4000000000000
.dword 0x3fe999999999999a
.dword 0x3fcc8ff7c79aa000
.dword 0xbd27794f689f8434
.dword 0x3ff4200000000000
.dword 0x3fe970e4f80cb872
.dword 0x3fcd5c216b4fc000
.dword 0xbd21ba91bbca681b
.dword 0x3ff4400000000000
.dword 0x3fe948b0fcd6e9e0
.dword 0x3fce27076e2b0000
.dword 0xbd3a342c2af0003c
.dword 0x3ff4600000000000
.dword 0x3fe920fb49d0e229
.dword 0x3fcef0adcbdc6000
.dword 0xbd2b26b79c86af24
.dword 0x3ff4800000000000
.dword 0x3fe8f9c18f9c18fa
.dword 0x3fcfb9186d5e4000
.dword 0xbd0d572aab993c87
.dword 0x3ff4a00000000000
.dword 0x3fe8d3018d3018d3
.dword 0x3fd0402594b4d000
.dword 0x3cf036b89ef42d7f
.dword 0x3ff4c00000000000
.dword 0x3fe8acb90f6bf3aa
.dword 0x3fd0a324e2739000
.dword 0x3d0c6bee7ef4030e
.dword 0x3ff4e00000000000
.dword 0x3fe886e5f0abb04a
.dword 0x3fd1058bf9ae5000
.dword 0xbd34ab9d817d52cd
.dword 0x3ff5000000000000
.dword 0x3fe8618618618618
.dword 0x3fd1675cababa000
.dword 0x3d38380e731f55c4
.dword 0x3ff5200000000000
.dword 0x3fe83c977ab2bedd
.dword 0x3fd1c898c169a000
.dword 0xbd381410e5c62aff
.dword 0x3ff5400000000000
.dword 0x3fe8181818181818
.dword 0x3fd22941fbcf8000
.dword 0xbd3a6976f5eb0963
.dword 0x3ff5600000000000
.dword 0x3fe7f405fd017f40
.dword 0x3fd2895a13de8000
.dword 0x3d3a8d7ad24c13f0
.dword 0x3ff5800000000000
.dword 0x3fe7d05f417d05f4
.dword 0x3fd2e8e2bae12000
.dword 0xbd267b1e99b72bd8
.dword 0x3ff5a00000000000
.dword 0x3fe7ad2208e0ecc3
.dword 0x3fd347dd9a988000
.dword 0xbd25594dd4c58092
.dword 0x3ff5c00000000000
.dword 0x3fe78a4c8178a4c8
.dword 0x3fd3a64c55694000
.dword 0x3d37a71cbcd735d0
.dword 0x3ff5e00000000000
.dword 0x3fe767dce434a9b1
.dword 0x3fd404308686a000
.dword 0x3d3f8ef43049f7d3
.dword 0x3ff6000000000000
.dword 0x3fe745d1745d1746
.dword 0x3fd4618bc21c6000
.dword 0xbd13d82f484c84cc
.dword 0x3ff6200000000000
.dword 0x3fe724287f46debc
.dword 0x3fd4be5f95778000
.dword 0xbd3d7c92cd9ad824
.dword 0x3ff6400000000000
.dword 0x3fe702e05c0b8170
.dword 0x3fd51aad872e0000
.dword 0xbd3f4bd8db0a7cc1
.dword 0x3ff6600000000000
.dword 0x3fe6e1f76b4337c7
.dword 0x3fd5767717456000
.dword 0xbd364ead9524d7ca
.dword 0x3ff6800000000000
.dword 0x3fe6c16c16c16c17
.dword 0x3fd5d1bdbf581000
.dword 0xbd38d6bdc9c7c238
.dword 0x3ff6a00000000000
.dword 0x3fe6a13cd1537290
.dword 0x3fd62c82f2b9c000
.dword 0x3d3e54bdbd7c8a98
.dword 0x3ff6c00000000000
.dword 0x3fe6816816816817
.dword 0x3fd686c81e9b1000
.dword 0x3d32bb110af84054
.dword 0x3ff6e00000000000
.dword 0x3fe661ec6a5122f9
.dword 0x3fd6e08eaa2ba000
.dword 0x3d1e38c139318d71
.dword 0x3ff7000000000000
.dword 0x3fe642c8590b2164
.dword 0x3fd739d7f6bbd000
.dword 0x3cba7389314feb50
.dword 0x3ff7200000000000
.dword 0x3fe623fa77016240
.dword 0x3fd792a55fdd4000
.dword 0x3d3e89f057691fea
.dword 0x3ff7400000000000
.dword 0x3fe6058160581606
.dword 0x3fd7eaf83b82b000
.dword 0xbcee4da62d0c25ad
.dword 0x3ff7600000000000
.dword 0x3fe5e75bb8d015e7
.dword 0x3fd842d1da1e9000
.dword 0xbd33a2db13ae687c
.dword 0x3ff7800000000000
.dword 0x3fe5c9882b931057
.dword 0x3fd89a3386c14000
.dword 0x3d22d5ad38c40882
.dword 0x3ff7a00000000000
.dword 0x3fe5ac056b015ac0
.dword 0x3fd8f11e87366000
.dword 0x3d263bf0bb4eab4c
.dword 0x3ff7c00000000000
.dword 0x3fe58ed2308158ed
.dword 0x3fd947941c211000
.dword 0x3d3beae9337451f4
.dword 0x3ff7e00000000000
.dword 0x3fe571ed3c506b3a
.dword 0x3fd99d958117e000
.dword 0x3d01597525dd88f0
.dword 0x3ff8000000000000
.dword 0x3fe5555555555555
.dword 0x3fd9f323ecbfa000
.dword 0xbd3ed03525ca2643
.dword 0x3ff8200000000000
.dword 0x3fe5390948f40feb
.dword 0x3fda484090e5c000
.dword 0xbd33d7500d6523c5
.dword 0x3ff8400000000000
.dword 0x3fe51d07eae2f815
.dword 0x3fda9cec9a9a1000
.dword 0xbd3ed9cadec02b43
.dword 0x3ff8600000000000
.dword 0x3fe5015015015015
.dword 0x3fdaf12932478000
.dword 0xbd3e53bb31eed7a9
.dword 0x3ff8800000000000
.dword 0x3fe4e5e0a72f0539
.dword 0x3fdb44f77bcc9000
.dword 0xbd03ae68224aa2ce
.dword 0x3ff8a00000000000
.dword 0x3fe4cab88725af6e
.dword 0x3fdb985896931000
.dword 0x3d0f6b31f629f11e
.dword 0x3ff8c00000000000
.dword 0x3fe4afd6a052bf5b
.dword 0x3fdbeb4d9da72000
.dword 0xbd321021e78b2151
.dword 0x3ff8e00000000000
.dword 0x3fe49539e3b2d067
.dword 0x3fdc3dd7a7cdb000
.dword 0xbd25946261f5a42b
.dword 0x3ff9000000000000
.dword 0x3fe47ae147ae147b
.dword 0x3fdc8ff7c79aa000
.dword 0xbd37794f689f8434
.dword 0x3ff9200000000000
.dword 0x3fe460cbc7f5cf9a
.dword 0x3fdce1af0b85f000
.dword 0x3d2f5bdbe95e5568
.dword 0x3ff9400000000000
.dword 0x3fe446f86562d9fb
.dword 0x3fdd32fe7e00f000
.dword 0xbd30aa7884dcd050
.dword 0x3ff9600000000000
.dword 0x3fe42d6625d51f87
.dword 0x3fdd83e7258a3000
.dword 0xbd0835f5d48ba26d
.dword 0x3ff9800000000000
.dword 0x3fe4141414141414
.dword 0x3fddd46a04c1c000
.dword 0x3d3282fb989a9274
.dword 0x3ff9a00000000000
.dword 0x3fe3fb013fb013fb
.dword 0x3fde24881a7c7000
.dword 0xbd2ecf1a1385d356
.dword 0x3ff9c00000000000
.dword 0x3fe3e22cbce4a902
.dword 0x3fde744261d68000
.dword 0x3d3e1f8df68dbcf3
.dword 0x3ff9e00000000000
.dword 0x3fe3c995a47babe7
.dword 0x3fdec399d2469000
.dword 0xbd29ff45188d6065
.dword 0x3ffa000000000000
.dword 0x3fe3b13b13b13b14
.dword 0x3fdf128f5faf0000
.dword 0x3d3bb2cd720ec44c
.dword 0x3ffa200000000000
.dword 0x3fe3991c2c187f63
.dword 0x3fdf6123fa703000
.dword 0xbd3d4e7aea4f0d25
.dword 0x3ffa400000000000
.dword 0x3fe3813813813814
.dword 0x3fdfaf588f78f000
.dword 0x3d28f6cd7d9f2754
.dword 0x3ffa600000000000
.dword 0x3fe3698df3de0748
.dword 0x3fdffd2e0857f000
.dword 0x3d3261565f40d932
.dword 0x3ffa800000000000
.dword 0x3fe3521cfb2b78c1
.dword 0x3fe02552a5a5d000
.dword 0x3d1fd8d38d2bafdd
.dword 0x3ffaa00000000000
.dword 0x3fe33ae45b57bcb2
.dword 0x3fe04bdf9da92800
.dword 0xbd22d9a033eff74e
.dword 0x3ffac00000000000
.dword 0x3fe323e34a2b10bf
.dword 0x3fe0723e5c1ce000
.dword 0xbd17f6350d38eddd
.dword 0x3ffae00000000000
.dword 0x3fe30d190130d190
.dword 0x3fe0986f4f573800
.dword 0xbd36fa37012b5806
.dword 0x3ffb000000000000
.dword 0x3fe2f684bda12f68
.dword 0x3fe0be72e4252800
.dword 0x3d3415b4c4bdd99f
.dword 0x3ffb200000000000
.dword 0x3fe2e025c04b8097
.dword 0x3fe0e44985d1d000
.dword 0xbd3ba048a8d10b4b
.dword 0x3ffb400000000000
.dword 0x3fe2c9fb4d812ca0
.dword 0x3fe109f39e2d5000
.dword 0xbd3b4810e09b27a4
.dword 0x3ffb600000000000
.dword 0x3fe2b404ad012b40
.dword 0x3fe12f719593f000
.dword 0xbd00eb3fb7398e0c
.dword 0x3ffb800000000000
.dword 0x3fe29e4129e4129e
.dword 0x3fe154c3d2f4d800
.dword 0xbd30b2b38662e34d
.dword 0x3ffba00000000000
.dword 0x3fe288b01288b013
.dword 0x3fe179eabbd89800
.dword 0x3d2a0bfc60e6fa08
.dword 0x3ffbc00000000000
.dword 0x3fe27350b8812735
.dword 0x3fe19ee6b467c800
.dword 0x3d26ecc5cbdd7782
.dword 0x3ffbe00000000000
.dword 0x3fe25e22708092f1
.dword 0x3fe1c3b81f714000
.dword 0xbd3eda1b58389902
.dword 0x3ffc000000000000
.dword 0x3fe2492492492492
.dword 0x3fe1e85f5e704000
.dword 0x3d1a07bd8b34be7c
.dword 0x3ffc200000000000
.dword 0x3fe23456789abcdf
.dword 0x3fe20cdcd192a800
.dword 0x3d3b6c9a81e87bae
.dword 0x3ffc400000000000
.dword 0x3fe21fb78121fb78
.dword 0x3fe23130d7bec000
.dword 0xbd17afa4392f1ba7
.dword 0x3ffc600000000000
.dword 0x3fe20b470c67c0d9
.dword 0x3fe2555bce98f800
.dword 0xbcfa61fde292977e
.dword 0x3ffc800000000000
.dword 0x3fe1f7047dc11f70
.dword 0x3fe2795e1289b000
.dword 0x3d21aeb783f3db97
.dword 0x3ffca00000000000
.dword 0x3fe1e2ef3b3fb874
.dword 0x3fe29d37fec2b000
.dword 0x3d11590b9ad974ba
.dword 0x3ffcc00000000000
.dword 0x3fe1cf06ada2811d
.dword 0x3fe2c0e9ed449000
.dword 0xbd274468563ce45d
.dword 0x3ffce00000000000
.dword 0x3fe1bb4a4046ed29
.dword 0x3fe2e47436e40000
.dword 0x3d334202a10c3491
.dword 0x3ffd000000000000
.dword 0x3fe1a7b9611a7b96
.dword 0x3fe307d7334f1000
.dword 0x3d17c3f6b2143ead
.dword 0x3ffd200000000000
.dword 0x3fe19453808ca29c
.dword 0x3fe32b1339122000
.dword 0xbd34766fd54a4c27
.dword 0x3ffd400000000000
.dword 0x3fe1811811811812
.dword 0x3fe34e289d9ce000
.dword 0x3d2d316eb92d885d
.dword 0x3ffd600000000000
.dword 0x3fe16e0689427379
.dword 0x3fe37117b5474800
.dword 0xbd028e88bf6deec9
.dword 0x3ffd800000000000
.dword 0x3fe15b1e5f75270d
.dword 0x3fe393e0d3562800
.dword 0x3d30cd4e221301b7
.dword 0x3ffda00000000000
.dword 0x3fe1485f0e0acd3b
.dword 0x3fe3b6844a000000
.dword 0xbd3eea838909f3d3
.dword 0x3ffdc00000000000
.dword 0x3fe135c81135c811
.dword 0x3fe3d9026a715800
.dword 0xbd2055bfbd9c2f53
.dword 0x3ffde00000000000
.dword 0x3fe12358e75d3033
.dword 0x3fe3fb5b84d17000
.dword 0xbd17b4962c55f46b
.dword 0x3ffe000000000000
.dword 0x3fe1111111111111
.dword 0x3fe41d8fe8467000
.dword 0x3d35732325e617a3
.dword 0x3ffe200000000000
.dword 0x3fe0fef010fef011
.dword 0x3fe43f9fe2f9d000
.dword 0xbd298858d84649f1
.dword 0x3ffe400000000000
.dword 0x3fe0ecf56be69c90
.dword 0x3fe4618bc21c6000
.dword 0xbd23d82f484c84cc
.dword 0x3ffe600000000000
.dword 0x3fe0db20a88f4696
.dword 0x3fe48353d1ea8800
.dword 0x3d1bee7abd176604
.dword 0x3ffe800000000000
.dword 0x3fe0c9714fbcda3b
.dword 0x3fe4a4f85db04000
.dword 0xbd244fdd840b8591
.dword 0x3ffea00000000000
.dword 0x3fe0b7e6ec259dc8
.dword 0x3fe4c679afccf000
.dword 0xbd2c64e971322ce8
.dword 0x3ffec00000000000
.dword 0x3fe0a6810a6810a7
.dword 0x3fe4e7d811b75800
.dword 0x3d3d84e584c2b22c
.dword 0x3ffee00000000000
.dword 0x3fe0953f39010954
.dword 0x3fe50913cc016800
.dword 0x3d0ad2f2ce96c2d6
.dword 0x3fff000000000000
.dword 0x3fe0842108421084
.dword 0x3fe52a2d265bc800
.dword 0xbd32a88c41ba8752
.dword 0x3fff200000000000
.dword 0x3fe073260a47f7c6
.dword 0x3fe54b2467999800
.dword 0xbd3b42b755eba5e1
.dword 0x3fff400000000000
.dword 0x3fe0624dd2f1a9fc
.dword 0x3fe56bf9d5b3f000
.dword 0x3d3cca08e310b9b2
.dword 0x3fff600000000000
.dword 0x3fe05197f7d73404
.dword 0x3fe58cadb5cd7800
.dword 0x3d2893092f25d931
.dword 0x3fff800000000000
.dword 0x3fe0410410410410
.dword 0x3fe5ad404c35a000
.dword 0xbd1a609acaab41fc
.dword 0x3fffa00000000000
.dword 0x3fe03091b51f5e1a
.dword 0x3fe5cdb1dc6c1800
.dword 0xbd136e612387451f
.dword 0x3fffc00000000000
.dword 0x3fe0204081020408
.dword 0x3fe5ee02a9241800
.dword 0xbd28a8f29f6a02dc
.dword 0x3fffe00000000000
.dword 0x3fe0101010101010
.dword 0x3fe60e32f4478800
.dword 0x3d1b194f912b416a
.dword 0x4000000000000000
.dword 0x3fe0000000000000
.dword 0x3fe62e42fefa3800
.dword 0x3d2ef35793c76730
.dword 0x3fe62e42fefa3800
.dword 0x3d2ef35793c76730
.word 0x4e000000
.word 0x3f000000
.dword 0x8000000000019902
.dword 0x8000000000039909
.section .text
.align 4
.globl _rv_log1p
_rv_log1p:
fmv.x.d a0,fa0
li t2,2047
li t4,1023
lui t0,%hi($databegin)
addi t0,t0,%lo($databegin)
slli t2,t2,0x34
li t5,0x79
slli t4,t4,0x35
addi sp,sp,-176
slli t5,t5,0x37
li a4,131072
sext.w a7,a4
li a1,0x2f
and t3,a0,t2
sd ra,0(sp)
addi a7,a7,-143
slli a1,a1,0x2c
bgtu t3,t4,TYPH_1
li t4,0x1
j TYPH_2
TYPH_1: li t4,0x0
TYPH_2: nop
fld fs1,40(t0)
bgtu t3,t5,TYPH_3
li t3,0x1
j TYPH_4
TYPH_3: li t3,0x0
TYPH_4: nop
slli a7,a7,0x2d
beqz t4,L$1
bnez t3,L$2
li a4,4080
li s7,2046
li a5,8160
fadd.d fs2,fa0,fs1
fmv.x.d t1,fs1
li t3,0xFFF0000000000000
and t1,t1,t3
li t4,0x000FFFFFFFFFFFFF
fmv.x.d a3,fs2
and t3,a3,t4
or t1,t1,t3
fmv.d.x fs3,t1
fmv.x.d a0,fs2
sub a7,a0,a7
srai a2,a0,0x28
srai a3,a0,0x34
sltu a7,a7,a1
and a2,a2,a4
addi a6,a3,-1
addi s9,a3,-1022
bnez a7,L$3
addi a2,a2,16
sltu a6,a6,s7
addi a3,a3,-1023
and a2,a2,a5
beqz a6,L$1
add a2,t0,a2
fld fs5,128(a2)
bnez s9,L$5
li a4,0x4000000000000000
fmv.d.x fs6,a4
fadd.d fa1,fa0,fa0
fsub.d fs5,fs6,fs5
fadd.d fa1,fs5,fa1
j L$6
.align 4
L$5:
bnez a3,L$7
fsub.d fs1,fs1,fs5
fadd.d fa1,fs1,fa0
j L$6
.align 4
L$7:
li ra,1023
addi s10,a3,-1
sub ra,ra,a3
slli ra,ra,0x34
sltiu s10,s10,0x34
beqz s10,L$8
fmv.d.x fa2,ra
fsub.d fs5,fa2,fs5
fmadd.d fa1,fa2,fa0,fs5
j L$6
.align 4
L$8:
li t4,1023
li a4,0x35
sub s11,a3,a4
seqz s11,s11
li a4,0x36
sub t1,a3,a4
seqz t1,t1
sub t4,t4,a3
or t1,s11,t1
slli t4,t4,0x34
beqz t1,L$9
fmv.d.x fa3,t4
fmsub.d fs5,fa3,fa0,fs5
fadd.d fa1,fs5,fa3
j L$6
.align 4
L$9:
fsub.d fa1,fs3,fs5
.align 4
L$6:
fld fa4,136(a2)
fld fa5,8(t0)
fld ft11,0(t0)
fld ft8,32(t0)
fld fa6,24(t0)
li a4,4264
add a4,t0,a4
fld fs9,0(a4)
fmv.d.x fs7,a3
fld fs10,152(a2)
fmul.d fa1,fa1,fa4
fld ft10,16(t0)
li a4,4256
add a4,t0,a4
fld fa7,0(a4)
fld fs4,144(a2)
ld ra,0(sp)
fmv.x.d a4,fs7
fcvt.d.l fs7,a4
fmul.d ft9,fa1,fa1
fmadd.d fa5,fa1,fa5,ft11
fmadd.d ft8,fa1,ft8,fa6
fmul.d fs8,fa1,ft9
fmadd.d fs9,fs9,fs7,fs10
fmadd.d fa5,ft9,ft10,fa5
fmadd.d fa7,fs7,fa7,fs4
fadd.d fa1,fs9,fa1
fmadd.d fa5,fs8,ft8,fa5
fmadd.d fa1,ft9,fa5,fa1
fadd.d fa7,fa1,fa7
fmv.d fa0,fa7
addi sp,sp,176
ret
.align 4
L$3:
feq.d a4,fs2,fs1
beqz a4,TYPH_7
li a4,0x4000000000000000
fmv.d.x fs1,a4
j TYPH_8
TYPH_7: fmv.d.x fs1,a4
TYPH_8:
li t1,4272
add t1,t0,t1
flw fs6,0(t1)
fcvt.d.s fs6,fs6
addi a4,t0,48
vsetvli a5,a6,e64,m1
vle64.v v0,(a4)
fsgnj.d fa2,fs6,fa0
ld ra,0(sp)
vfmv.s.f v1,fa0
vslideup.vi v19,v1,1
vfmv.s.f v19,fa0
addi a4,t0,64
vle64.v v28,(a4)
li a4,0
fmv.d.x fs10,a4
feq.d a4,fs1,fs10
beqz a4,L$2
fadd.d fs10,fa0,fa2
addi a4,t0,80
vle64.v v14,(a4)
addi a4,t0,96
vle64.v v27,(a4)
vfmul.vv v20,v19,v19
addi a4,t0,112
vle64.v v26,(a4)
li t1,4276
add t1,t0,t1
flw fa5,0(t1)
fcvt.d.s fa5,fa5
fsub.d fa2,fs10,fa2
vfmadd.vv v0,v19,v28
vfmul.vv v29,v19,v20
vfmadd.vv v14,v19,v27
fsub.d ft9,fa0,fa2
vfmacc.vv v0,v20,v26
vfmv.f.s fa4,v20
fmul.d ft11,fa4,fa4
fmul.d fs4,fa2,fa2
fadd.d fa0,fa0,fa2
vfmacc.vv v0,v29,v14
fmul.d ft11,ft11,ft11
fmul.d fa0,fa0,ft9
fneg.d fs4,fs4
fmadd.d fs4,fs4,fa5,fa2
vslidedown.vi v1,v0,1
vfmv.f.s fs3,v1
vfmv.f.s ft0,v0
vfmv.f.s fs9,v29
fmul.d ft0,fs9,ft0
fmadd.d ft0,ft11,fs3,ft0
fneg.d fa0,fa0
fmadd.d ft0,fa0,fa5,ft0
fneg.d fa0,fa0
fadd.d ft0,ft0,ft9
fadd.d fa7,ft0,fs4
fmv.d fa0,fa7
addi sp,sp,176
ret
.align 4
L$1:
fmv.x.d t6,fa0
srli t3,a0,0x3f
andi t3,t3,0x1
beqz t3,L$4
li a4,4280
add a4,t0,a4
ld a7,0(a4)
and a1,t6,t2
sub a1,a1,t2
seqz a1,a1
li t2,-1
srli t2,t2,0xc
and t2,t6,t2
seqz t2,t2
not t2,t2
and t2,a1,t2
addi a1,sp,8
andi t2,t2,0x1
bnez t2,L$2
sd a7,8(sp)
fld fa7,40(sp)
ld ra,0(sp)
fmv.d fa0,fa7
addi sp,sp,176
ret
.align 4
L$4:
and a0,a0,t2
addi a1,sp,8
li a4,4288
add a4,t0,a4
ld t0,0(a4)
bnez a0,L$2
sd t0,8(sp)
fld fa7,40(sp)
ld ra,0(sp)
fmv.d fa0,fa7
addi sp,sp,176
ret
.align 4
L$2:
ld ra,0(sp)
fmv.d fa7,fa0
fmv.d fa0,fa7
addi sp,sp,176
ret
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Assembly
1
https://gitee.com/li-fei-abc/risc-v-math-library.git
git@gitee.com:li-fei-abc/risc-v-math-library.git
li-fei-abc
risc-v-math-library
RISC-V-math-library
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385