GnuMP是一个任意精度的数学计算库。
operatingonsignedintegers,rationalnumbers,andfloatingpointnumbers.Thereisnolimittotheprecision,exceptfortheonesimpliedbyavailablememory.Ithasarichsetoffunctions,andthefunctionshavearegularinterface.Itisdesignedtobeasfastaspossible,bothforsmalloperandsandforhugeoperands.Thespeedisachievedbyusingfullwordsasthebasicarithmetictype,byusingfastalgorithmswithcarefullyoptimizedassemblycodeforthemostcommoninnerloopsforalotofCPUs,andbyageneralemphasisonspeed(insteadofsimplicityorelegance).Itisbelievedtobefasterthananyothersimilarlibrary.Theadvantageincreaseswiththeoperandsizesforcertainoperations,sinceGMPinmanycaseshasasymptoticallyfasteralgorithms.
评论