4 Star 4 Fork 1

mathlib/RV-Libm

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
log2.S 18.60 KB
一键复制 编辑 原始数据 按行查看 历史
life 提交于 2022-07-07 01:28 . function
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775
.section .rodata, "a", "progbits"
.align 4
.section .text, "ax", "progbits"
.align 4
.section .rodata
.align 4
$databegin:
.dword 0xbfe71547652b82ff
.dword 0x3fdec709dc32988b
.dword 0xbfd715476521ed89
.dword 0x3fd277801a1a29cb
.dword 0xbfcec7316e93af0c
.dword 0x3ff71547652b82fe
.dword 0xbfd71547652b871a
.dword 0x3fc484461c4cb82d
.dword 0x3fdec709dc3a05d3
.dword 0xbfc71547cdda1141
.dword 0x3fca61767d1eeff0
.dword 0xbfbf46f0ea869e4b
.dword 0xbfcec709dc0d1e80
.dword 0x3fc1099060821257
.dword 0x3fd2776c50e135f1
.dword 0xbfc276f60542bb33
.dword 0x3ff7154768000000
.dword 0xbe46a3e80f440000
.word 0x5a000000
.word 0x4e000000
.word 0x3f000000
.word 0x00000000
.dword 0x8000000000019902
.dword 0x8000000000039909
.dword 0x0000000000000000
.dword 0x0000000000000000
.dword 0x3ff0000000000000
.dword 0x3ff0000000000000
.dword 0x0000000000000000
.dword 0x0000000000000000
.dword 0x3ff0200000000000
.dword 0x3fefc07f01fc07f0
.dword 0x3f86fe50b6f00000
.dword 0xbd3ef5d00e390a00
.dword 0x3ff0400000000000
.dword 0x3fef81f81f81f820
.dword 0x3f96e79685c30000
.dword 0xbd26eb3ac8ec0ef7
.dword 0x3ff0600000000000
.dword 0x3fef44659e4a4271
.dword 0x3fa11cd1d5130000
.dword 0x3d3a0976c0a2827d
.dword 0x3ff0800000000000
.dword 0x3fef07c1f07c1f08
.dword 0x3fa6bad3758f0000
.dword 0xbcf3c6764fc87b4a
.dword 0x3ff0a00000000000
.dword 0x3feecc07b301ecc0
.dword 0x3fac4dfab90a8000
.dword 0x3d35af7a7c7c34f3
.dword 0x3ff0c00000000000
.dword 0x3fee9131abf0b767
.dword 0x3fb0eb389fa28000
.dword 0x3d3f9ab3cf74baba
.dword 0x3ff0e00000000000
.dword 0x3fee573ac901e574
.dword 0x3fb3aa2fdd280000
.dword 0xbd2c7a4ff65ddbc9
.dword 0x3ff1000000000000
.dword 0x3fee1e1e1e1e1e1e
.dword 0x3fb663f6fac90000
.dword 0x3d33167ccc538261
.dword 0x3ff1200000000000
.dword 0x3fede5d6e3f8868a
.dword 0x3fb918a16e464000
.dword 0xbd294aa31b9b6d65
.dword 0x3ff1400000000000
.dword 0x3fedae6076b981db
.dword 0x3fbbc84240adc000
.dword 0xbd34459c4d3a591b
.dword 0x3ff1600000000000
.dword 0x3fed77b654b82c34
.dword 0x3fbe72ec117fc000
.dword 0xbd3a4de3424a2624
.dword 0x3ff1800000000000
.dword 0x3fed41d41d41d41d
.dword 0x3fc08c588cda8000
.dword 0xbd2871a7610e40bd
.dword 0x3ff1a00000000000
.dword 0x3fed0cb58f6ec074
.dword 0x3fc1dcd197552000
.dword 0x3d36f6bd48a860f0
.dword 0x3ff1c00000000000
.dword 0x3fecd85689039b0b
.dword 0x3fc32ae9e278a000
.dword 0x3d3c343ea3e580eb
.dword 0x3ff1e00000000000
.dword 0x3feca4b3055ee191
.dword 0x3fc476a9f9840000
.dword 0xbd31659d8e2d7d38
.dword 0x3ff2000000000000
.dword 0x3fec71c71c71c71c
.dword 0x3fc5c01a39fbe000
.dword 0xbd32f0c0bfe9dbec
.dword 0x3ff2200000000000
.dword 0x3fec3f8f01c3f8f0
.dword 0x3fc70742d4ef0000
.dword 0x3d13f94e00e7d6bc
.dword 0x3ff2400000000000
.dword 0x3fec0e070381c0e0
.dword 0x3fc84c2bd02f0000
.dword 0x3d1d97ee9124773b
.dword 0x3ff2600000000000
.dword 0x3febdd2b899406f7
.dword 0x3fc98edd077e8000
.dword 0xbd3e41fa0a62e6ae
.dword 0x3ff2800000000000
.dword 0x3febacf914c1bad0
.dword 0x3fcacf5e2db4e000
.dword 0x3d3927dfc23d9780
.dword 0x3ff2a00000000000
.dword 0x3feb7d6c3dda338b
.dword 0x3fcc0db6cdd94000
.dword 0x3d3bdc81c4db3134
.dword 0x3ff2c00000000000
.dword 0x3feb4e81b4e81b4f
.dword 0x3fcd49ee4c326000
.dword 0xbd2a40dc2d2a6bf7
.dword 0x3ff2e00000000000
.dword 0x3feb2036406c80d9
.dword 0x3fce840be74e6000
.dword 0x3d34998f93e7aa3c
.dword 0x3ff3000000000000
.dword 0x3feaf286bca1af28
.dword 0x3fcfbc16b9026000
.dword 0x3d30144751b3314f
.dword 0x3ff3200000000000
.dword 0x3feac5701ac5701b
.dword 0x3fd0790adbb03000
.dword 0x3cc2de0634d33aa9
.dword 0x3ff3400000000000
.dword 0x3fea98ef606a63be
.dword 0x3fd11307dad31000
.dword 0xbd3228d3da3e961b
.dword 0x3ff3600000000000
.dword 0x3fea6d01a6d01a6d
.dword 0x3fd1ac05b291f000
.dword 0x3cfc14a31ce1b7e3
.dword 0x3ff3800000000000
.dword 0x3fea41a41a41a41a
.dword 0x3fd24407ab0e0000
.dword 0x3d3ce60916e52e91
.dword 0x3ff3a00000000000
.dword 0x3fea16d3f97a4b02
.dword 0x3fd2db10fc4da000
.dword 0xbd354243b21709ce
.dword 0x3ff3c00000000000
.dword 0x3fe9ec8e951033d9
.dword 0x3fd37124cea4d000
.dword 0xbd20993376649b50
.dword 0x3ff3e00000000000
.dword 0x3fe9c2d14ee4a102
.dword 0x3fd406463b1b0000
.dword 0x3d3125d6cbcd1095
.dword 0x3ff4000000000000
.dword 0x3fe999999999999a
.dword 0x3fd49a784bcd2000
.dword 0xbd31d406db502403
.dword 0x3ff4200000000000
.dword 0x3fe970e4f80cb872
.dword 0x3fd52dbdfc4c9000
.dword 0x3d3acdf73d83987f
.dword 0x3ff4400000000000
.dword 0x3fe948b0fcd6e9e0
.dword 0x3fd5c01a39fbd000
.dword 0x3d3a1e7e802c4828
.dword 0x3ff4600000000000
.dword 0x3fe920fb49d0e229
.dword 0x3fd6518fe4678000
.dword 0xbd31646b761c48de
.dword 0x3ff4800000000000
.dword 0x3fe8f9c18f9c18fa
.dword 0x3fd6e221cd9d1000
.dword 0xbd290d43956fa5d8
.dword 0x3ff4a00000000000
.dword 0x3fe8d3018d3018d3
.dword 0x3fd771d2ba7f0000
.dword 0xbd33106e404cabb7
.dword 0x3ff4c00000000000
.dword 0x3fe8acb90f6bf3aa
.dword 0x3fd800a563162000
.dword 0xbd2d5e6a8a4fb059
.dword 0x3ff4e00000000000
.dword 0x3fe886e5f0abb04a
.dword 0x3fd88e9c72e0b000
.dword 0x3d212d25b3252647
.dword 0x3ff5000000000000
.dword 0x3fe8618618618618
.dword 0x3fd91bba891f1000
.dword 0x3d3c22d2cad415ae
.dword 0x3ff5200000000000
.dword 0x3fe83c977ab2bedd
.dword 0x3fd9a802391e2000
.dword 0x3d2979a5db68721d
.dword 0x3ff5400000000000
.dword 0x3fe8181818181818
.dword 0x3fda33760a7f6000
.dword 0x3cf4275f1035e5e8
.dword 0x3ff5600000000000
.dword 0x3fe7f405fd017f40
.dword 0x3fdabe18797f2000
.dword 0xbd06e3cb71b554e7
.dword 0x3ff5800000000000
.dword 0x3fe7d05f417d05f4
.dword 0x3fdb47ebf7388000
.dword 0x3d250520a377c7ec
.dword 0x3ff5a00000000000
.dword 0x3fe7ad2208e0ecc3
.dword 0x3fdbd0f2e9e79000
.dword 0x3ce855a216719009
.dword 0x3ff5c00000000000
.dword 0x3fe78a4c8178a4c8
.dword 0x3fdc592fad296000
.dword 0xbd32a606046ad444
.dword 0x3ff5e00000000000
.dword 0x3fe767dce434a9b1
.dword 0x3fdce0a4923a6000
.dword 0xbd3e0cda8bd74461
.dword 0x3ff6000000000000
.dword 0x3fe745d1745d1746
.dword 0x3fdd6753e032f000
.dword 0xbd37c407050799bf
.dword 0x3ff6200000000000
.dword 0x3fe724287f46debc
.dword 0x3fdded3fd4423000
.dword 0x3d39313aec658458
.dword 0x3ff6400000000000
.dword 0x3fe702e05c0b8170
.dword 0x3fde726aa1e75000
.dword 0x3d33483146784bd2
.dword 0x3ff6600000000000
.dword 0x3fe6e1f76b4337c7
.dword 0x3fdef6d67328e000
.dword 0x3d2103e8f00d41c8
.dword 0x3ff6800000000000
.dword 0x3fe6c16c16c16c17
.dword 0x3fdf7a8568cb0000
.dword 0x3d3b3b3864c60011
.dword 0x3ff6a00000000000
.dword 0x3fe6a13cd1537290
.dword 0x3fdffd799a840000
.dword 0xbcf9518ce032f41d
.dword 0x3ff6c00000000000
.dword 0x3fe6816816816817
.dword 0x3fe03fda8b979800
.dword 0x3d27f33943464056
.dword 0x3ff6e00000000000
.dword 0x3fe661ec6a5122f9
.dword 0x3fe0809cf27f7000
.dword 0x3cfea92d9e0e8ac2
.dword 0x3ff7000000000000
.dword 0x3fe642c8590b2164
.dword 0x3fe0c10500d63800
.dword 0x3d3532c412ba94db
.dword 0x3ff7200000000000
.dword 0x3fe623fa77016240
.dword 0x3fe10113b153c800
.dword 0x3d1d4f639bb5cdf6
.dword 0x3ff7400000000000
.dword 0x3fe6058160581606
.dword 0x3fe140c9faa1e800
.dword 0xbd35e30f52d6ae75
.dword 0x3ff7600000000000
.dword 0x3fe5e75bb8d015e7
.dword 0x3fe18028cf729800
.dword 0xbd12b628e2d05d76
.dword 0x3ff7800000000000
.dword 0x3fe5c9882b931057
.dword 0x3fe1bf311e95d000
.dword 0x3cdbc76a2753b99b
.dword 0x3ff7a00000000000
.dword 0x3fe5ac056b015ac0
.dword 0x3fe1fde3d30e8000
.dword 0x3d22642415d47384
.dword 0x3ff7c00000000000
.dword 0x3fe58ed2308158ed
.dword 0x3fe23c41d4272800
.dword 0xbcfbfbf899cf2b3c
.dword 0x3ff7e00000000000
.dword 0x3fe571ed3c506b3a
.dword 0x3fe27a4c0585c800
.dword 0x3d3fc02bc277071d
.dword 0x3ff8000000000000
.dword 0x3fe5555555555555
.dword 0x3fe2b803473f7800
.dword 0x3d36879fa00b120a
.dword 0x3ff8200000000000
.dword 0x3fe5390948f40feb
.dword 0x3fe2f56875eb4000
.dword 0xbd1b3d7b0e65d2ce
.dword 0x3ff8400000000000
.dword 0x3fe51d07eae2f815
.dword 0x3fe3327c6ab4a000
.dword 0xbd3ac9bca36fd02e
.dword 0x3ff8600000000000
.dword 0x3fe5015015015015
.dword 0x3fe36f3ffb6d9000
.dword 0x3d262404772a151d
.dword 0x3ff8800000000000
.dword 0x3fe4e5e0a72f0539
.dword 0x3fe3abb3faa02000
.dword 0x3d266cccab240e90
.dword 0x3ff8a00000000000
.dword 0x3fe4cab88725af6e
.dword 0x3fe3e7d9379f7000
.dword 0x3ce66ae2a7ada553
.dword 0x3ff8c00000000000
.dword 0x3fe4afd6a052bf5b
.dword 0x3fe423b07e986800
.dword 0x3d354b383b0e8a55
.dword 0x3ff8e00000000000
.dword 0x3fe49539e3b2d067
.dword 0x3fe45f3a98a20800
.dword 0xbd18eb650003fb32
.dword 0x3ff9000000000000
.dword 0x3fe47ae147ae147b
.dword 0x3fe49a784bcd1800
.dword 0x3d3c57f2495fb7fa
.dword 0x3ff9200000000000
.dword 0x3fe460cbc7f5cf9a
.dword 0x3fe4d56a5b33d000
.dword 0xbd23bb5921006679
.dword 0x3ff9400000000000
.dword 0x3fe446f86562d9fb
.dword 0x3fe510118708a800
.dword 0x3d1f1bbd2926f164
.dword 0x3ff9600000000000
.dword 0x3fe42d6625d51f87
.dword 0x3fe54a6e8ca54000
.dword 0x3d3c6d8d86531d56
.dword 0x3ff9800000000000
.dword 0x3fe4141414141414
.dword 0x3fe584822698a000
.dword 0xbd3661e393a16b95
.dword 0x3ff9a00000000000
.dword 0x3fe3fb013fb013fb
.dword 0x3fe5be4d0cb51800
.dword 0xbd3e5aa8a607f6ef
.dword 0x3ff9c00000000000
.dword 0x3fe3e22cbce4a902
.dword 0x3fe5f7cff41e0800
.dword 0x3d2aeb8cb1ac05cd
.dword 0x3ff9e00000000000
.dword 0x3fe3c995a47babe7
.dword 0x3fe6310b8f553000
.dword 0x3d02101a9685c779
.dword 0x3ffa000000000000
.dword 0x3fe3b13b13b13b14
.dword 0x3fe66a008e478800
.dword 0x3d1979a5db68721d
.dword 0x3ffa200000000000
.dword 0x3fe3991c2c187f63
.dword 0x3fe6a2af9e5a1000
.dword 0xbd1ebefecd51a1bf
.dword 0x3ffa400000000000
.dword 0x3fe3813813813814
.dword 0x3fe6db196a761800
.dword 0x3d249d97df07e357
.dword 0x3ffa600000000000
.dword 0x3fe3698df3de0748
.dword 0x3fe7133e9b157000
.dword 0xbd3c20d74c0211bf
.dword 0x3ffa800000000000
.dword 0x3fe3521cfb2b78c1
.dword 0x3fe74b1fd64e0800
.dword 0xbd15872350f805d6
.dword 0x3ffaa00000000000
.dword 0x3fe33ae45b57bcb2
.dword 0x3fe782bdbfdda800
.dword 0xbd2a8843781eda15
.dword 0x3ffac00000000000
.dword 0x3fe323e34a2b10bf
.dword 0x3fe7ba18f9350000
.dword 0x3d37204f55bbf90d
.dword 0x3ffae00000000000
.dword 0x3fe30d190130d190
.dword 0x3fe7f1322182d000
.dword 0xbd1d45da26510033
.dword 0x3ffb000000000000
.dword 0x3fe2f684bda12f68
.dword 0x3fe82809d5be7000
.dword 0x3d0cb6f70109b0f1
.dword 0x3ffb200000000000
.dword 0x3fe2e025c04b8097
.dword 0x3fe85ea0b0b27800
.dword 0x3d39308437e74325
.dword 0x3ffb400000000000
.dword 0x3fe2c9fb4d812ca0
.dword 0x3fe894f74b06f000
.dword 0xbd0d2fe4574e09b9
.dword 0x3ffb600000000000
.dword 0x3fe2b404ad012b40
.dword 0x3fe8cb0e3b4b3800
.dword 0x3d3ded9b44542fd9
.dword 0x3ffb800000000000
.dword 0x3fe29e4129e4129e
.dword 0x3fe900e616000000
.dword 0x3d3667f21fa8423f
.dword 0x3ffba00000000000
.dword 0x3fe288b01288b013
.dword 0x3fe9367f6da0a800
.dword 0x3d3974e6432d9ee8
.dword 0x3ffbc00000000000
.dword 0x3fe27350b8812735
.dword 0x3fe96bdad2acb800
.dword 0xbd3050809db75676
.dword 0x3ffbe00000000000
.dword 0x3fe25e22708092f1
.dword 0x3fe9a0f8d3b0e000
.dword 0x3d03f7a55cd2af4c
.dword 0x3ffc000000000000
.dword 0x3fe2492492492492
.dword 0x3fe9d5d9fd501000
.dword 0x3d166cccab240e90
.dword 0x3ffc200000000000
.dword 0x3fe23456789abcdf
.dword 0x3fea0a7eda4c1000
.dword 0x3d22ce6312ebb81d
.dword 0x3ffc400000000000
.dword 0x3fe21fb78121fb78
.dword 0x3fea3ee7f38e1800
.dword 0x3ceed0798d1aa217
.dword 0x3ffc600000000000
.dword 0x3fe20b470c67c0d9
.dword 0x3fea7315d02f2000
.dword 0x3d18f7aac147fdc1
.dword 0x3ffc800000000000
.dword 0x3fe1f7047dc11f70
.dword 0x3feaa708f5801800
.dword 0xbd3964190e41bca7
.dword 0x3ffca00000000000
.dword 0x3fe1e2ef3b3fb874
.dword 0x3feadac1e711c800
.dword 0x3cf968ab16b0d7ba
.dword 0x3ffcc00000000000
.dword 0x3fe1cf06ada2811d
.dword 0x3feb0e4126bcc800
.dword 0x3d0af5e9bb5386c2
.dword 0x3ffce00000000000
.dword 0x3fe1bb4a4046ed29
.dword 0x3feb418734a90000
.dword 0x3d117b2f1731efbe
.dword 0x3ffd000000000000
.dword 0x3fe1a7b9611a7b96
.dword 0x3feb74948f553000
.dword 0x3d36d25a5b8a19b2
.dword 0x3ffd200000000000
.dword 0x3fe19453808ca29c
.dword 0x3feba769b39e4800
.dword 0x3d2640ef87ede14b
.dword 0x3ffd400000000000
.dword 0x3fe1811811811812
.dword 0x3febda071cc68000
.dword 0xbd2924ae921f7eca
.dword 0x3ffd600000000000
.dword 0x3fe16e0689427379
.dword 0x3fec0c6d447c6000
.dword 0xbd3164e932b2d51c
.dword 0x3ffd800000000000
.dword 0x3fe15b1e5f75270d
.dword 0x3fec3e9ca2e1a000
.dword 0x3d054cda62d3926e
.dword 0x3ffda00000000000
.dword 0x3fe1485f0e0acd3b
.dword 0x3fec7095ae91e000
.dword 0x3d2c760bc9b188c4
.dword 0x3ffdc00000000000
.dword 0x3fe135c81135c811
.dword 0x3feca258dca93000
.dword 0x3d38b1aff71c8605
.dword 0x3ffde00000000000
.dword 0x3fe12358e75d3033
.dword 0x3fecd3e6a0ca8800
.dword 0x3d206c243749114c
.dword 0x3ffe000000000000
.dword 0x3fe1111111111111
.dword 0x3fed053f6d260800
.dword 0x3d12ce6312ebb81d
.dword 0x3ffe200000000000
.dword 0x3fe0fef010fef011
.dword 0x3fed3663b27f3000
.dword 0x3d2d5297837adb4b
.dword 0x3ffe400000000000
.dword 0x3fe0ecf56be69c90
.dword 0x3fed6753e032e800
.dword 0x3d3077f1f5f0cc83
.dword 0x3ffe600000000000
.dword 0x3fe0db20a88f4696
.dword 0x3fed9810643d6800
.dword 0xbd2eb3c3bf914b9c
.dword 0x3ffe800000000000
.dword 0x3fe0c9714fbcda3b
.dword 0x3fedc899ab3ff800
.dword 0xbd349d0cc62a295e
.dword 0x3ffea00000000000
.dword 0x3fe0b7e6ec259dc8
.dword 0x3fedf8f02086b000
.dword 0xbd1a768216f872eb
.dword 0x3ffec00000000000
.dword 0x3fe0a6810a6810a7
.dword 0x3fee29142e0e0000
.dword 0x3d2401fbaaa67e3c
.dword 0x3ffee00000000000
.dword 0x3fe0953f39010954
.dword 0x3fee59063c882000
.dword 0x3d3672b0c88d4dd6
.dword 0x3fff000000000000
.dword 0x3fe0842108421084
.dword 0x3fee88c6b3626800
.dword 0x3d3395510d1e3f81
.dword 0x3fff200000000000
.dword 0x3fe073260a47f7c6
.dword 0x3feeb855f8ca8800
.dword 0x3d1f61a96b8ce776
.dword 0x3fff400000000000
.dword 0x3fe0624dd2f1a9fc
.dword 0x3feee7b471b3a800
.dword 0x3d2507d6dc1f27ef
.dword 0x3fff600000000000
.dword 0x3fe05197f7d73404
.dword 0x3fef16e281db7800
.dword 0xbd2cfc4de6d73dea
.dword 0x3fff800000000000
.dword 0x3fe0410410410410
.dword 0x3fef45e08bcf0800
.dword 0xbd2aab1b2a41b090
.dword 0x3fffa00000000000
.dword 0x3fe03091b51f5e1a
.dword 0x3fef74aef0efb000
.dword 0xbd048a179268271d
.dword 0x3fffc00000000000
.dword 0x3fe0204081020408
.dword 0x3fefa34e1177c000
.dword 0x3d319b14945cf6ba
.dword 0x3fffe00000000000
.dword 0x3fe0101010101010
.dword 0x3fefd1be4c7f2800
.dword 0x3d37ca15910e7069
.dword 0x4000000000000000
.dword 0x3fe0000000000000
.dword 0x3ff0000000000000
.dword 0x0000000000000000
.section .text
.align 4
.globl _rv_log2
_rv_log2:
fmv.x.d a0,fa0
li a7,262144
sext.w t2,a7
li t3,0x6d
lui t0,%hi($databegin)
addi t0,t0,%lo($databegin)
slli t3,t3,0x2b
addi t2,t2,-291
addi sp,sp,-176
slli t2,t2,0x2c
sd ra,0(sp)
li a7,2046
li t1,4080
srai t5,a0,0x34
sub t2,a0,t2
srai t4,a0,0x28
fld ft0,200(t0)
sltu t2,t2,t3
addi t6,t5,-1
and t4,t4,t1
bnez t2,L$1
sltu t6,t6,a7
li t2,8160
addi t4,t4,16
beqz t6,L$2
and t4,t4,t2
addi t5,t5,-1023
fmv.x.d a4,ft0
li a5,0xFFF0000000000000
and a4,a4,a5
li a6,0x000FFFFFFFFFFFFF
fmv.x.d a7,fa0
and a5,a7,a6
or a4,a4,a5
fmv.d.x fs1,a4
j L$3
.align 4
L$2:
fmv.x.d a2,fa0
li a3,-1
li a4,2047
srli a1,a0,0x3f
srli a3,a3,0xc
ld ra,0(sp)
slli a4,a4,0x34
fmv.d fa7,fa0
andi a1,a1,0x1
beqz a1,L$4
and a3,a2,a3
and a2,a2,a4
seqz a3,a3
sub a2,a2,a4
seqz a2,a2
not a3,a3
and a2,a2,a3
andi a2,a2,0x1
beqz a2,L$5
fmv.d fa0,fa7
addi sp,sp,176
ret
.align 4
L$5:
ld a5,160(t0)
addi a1,sp,8
sd a5,8(sp)
fld fa0,40(sp)
ld ra,0(sp)
addi sp,sp,176
ret
.align 4
L$4:
li t1,2047
addi a1,sp,8
flw fs1,144(t0)
fcvt.d.s fs1,fs1
slli t1,t1,0x34
and a0,a0,t1
ld t2,168(t0)
bnez a0,L$6
fmv.x.d a4,fs1
li a5,0xFFF0000000000000
and a4,a4,a5
li a6,0x000FFFFFFFFFFFFF
fmv.x.d a7,fa0
and a5,a7,a6
or a4,a4,a5
fmv.d.x fs2,a4
fsub.d fs2,fs2,fs1
li a7,0x0
fmv.d.x ft3,a7
feq.d a7,fs2,ft3
beqz a7,L$7
sd t2,8(sp)
fld fa0,40(sp)
ld ra,0(sp)
addi sp,sp,176
ret
.align 4
L$7:
fmv.x.d t1,fs2
li t3,4080
li t4,8160
srai t2,t1,0x28
fmv.x.d a4,ft0
li a5,0xFFF0000000000000
and a4,a4,a5
li a6,0x000FFFFFFFFFFFFF
fmv.x.d a7,fs2
and a5,a7,a6
or a4,a4,a5
fmv.d.x fs1,a4
srai t1,t1,0x34
and t2,t2,t3
li a7,-2098
add t5,t1,a7
addi t2,t2,16
and t4,t2,t4
.align 4
L$3:
add t4,t0,t4
fld ft8,208(t0)
fld fs3,192(t4)
fld fs4,200(t4)
fld ft9,216(t4)
fld ft11,200(t0)
fld fa6,208(t4)
fld fs5,8(t0)
fld fa2,0(t0)
fmv.d.x fa4,t5
fld fs6,32(t0)
fld fa3,24(t0)
fld fa1,16(t0)
fsub.d fs1,fs1,fs3
fld ft10,40(t0)
ld ra,0(sp)
fmv.x.d a7,fa4
fcvt.d.l fa4,a7
fmul.d fs1,fs1,fs4
fmadd.d ft8,ft8,fa4,ft9
fmadd.d fa4,fa4,ft11,fa6
fmul.d fa0,fs1,fs1
fmadd.d fs5,fs1,fs5,fa2
fmadd.d fs6,fs1,fs6,fa3
fmul.d fa5,fs1,fa0
fmadd.d fs5,fa0,fa1,fs5
fmadd.d fs1,fs1,ft10,ft8
fmadd.d fs5,fa5,fs6,fs5
fmadd.d fs1,fa0,fs5,fs1
fadd.d fa0,fs1,fa4
addi sp,sp,176
ret
.align 4
L$6:
ld ra,0(sp)
fmv.d fa7,fa0
fmv.d fa0,fa7
addi sp,sp,176
ret
.align 4
L$1:
fsub.d ft0,fa0,ft0
flw fs7,148(t0)
fcvt.d.s fs7,fs7
addi a7,t0,48
vsetvli a5,a6,e64,m1
vle64.v v29,(a7)
addi a7,t0,64
vle64.v v19,(a7)
addi a7,t0,80
vle64.v v11,(a7)
vfmv.v.f v0,ft0
addi a7,t0,96
vle64.v v15,(a7)
addi a7,t0,112
vle64.v v17,(a7)
vfmul.vv v12,v0,v0
flw fs5,152(t0)
fcvt.d.s fs5,fs5
vfmv.f.s ft0,v0
fsgnj.d fs8,fs7,ft0
fld fa4,40(t0)
vfmacc.vv v19,v0,v29
fld fa7,136(t0)
fld fa0,128(t0)
ld ra,0(sp)
vfmadd.vv v11,v0,v15
fadd.d fs4,ft0,fs8
vfmul.vv v25,v0,v12
vfmadd.vv v17,v12,v19
vfmv.f.s fs3,v12
fmul.d fs3,fs3,fs3
fsub.d fs4,fs4,fs8
vfmul.vv v15,v25,v11
vfadd.vv v15,v15,v17
fmul.d ft8,fs4,fs4
fsub.d fa6,ft0,fs4
fadd.d fs4,ft0,fs4
fmul.d fs3,fs3,fs3
vslidedown.vi v1,v15,1
vfmv.f.s fs2,v1
vfmv.f.s fs6,v15
fneg.d ft3,ft8
fmadd.d ft0,ft3,fs5,ft0
fmul.d fs4,fs4,fa6
vfmv.f.s ft11,v25
fmul.d fs6,ft11,fs6
fmul.d fs4,fs4,fs5
li a4,0xfffffffff0000000
fmv.x.d a7,ft0
and a4,a4,a7
fmv.d.x fs1,a4
fmadd.d fs2,fs3,fs2,fs6
fneg.d ft3,fs4
fmadd.d fs2,ft3,fa4,fs2
fsub.d ft0,ft0,fs1
fmadd.d ft0,ft0,fa4,fs2
fmadd.d fa7,fs1,fa7,ft0
fmadd.d fa0,fs1,fa0,fa7
addi sp,sp,176
ret
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/mathlib/RV-Libm.git
git@gitee.com:mathlib/RV-Libm.git
mathlib
RV-Libm
RV-Libm
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385