rust-1.48_icecat-78.6.0.patch 196 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962
  1. # HG changeset patch
  2. # User Henri Sivonen <hsivonen@hsivonen.fi>
  3. # Date 1604046593 0
  4. # Node ID 632353012d05c8e71314d27edca945ce9c13f4ea
  5. # Parent 2876425c75f75f638b41e8c6093e84b817938a9a
  6. Bug 1667736 - Update packed_simd to compile on Rust 1.48. r=glandium
  7. Differential Revision: https://phabricator.services.mozilla.com/D91572
  8. diff --git a/.cargo/config.in b/.cargo/config.in
  9. --- a/.cargo/config.in
  10. +++ b/.cargo/config.in
  11. @@ -45,17 +45,17 @@
  12. [source."https://github.com/jfkthame/mapped_hyph.git"]
  13. git = "https://github.com/jfkthame/mapped_hyph.git"
  14. replace-with = "vendored-sources"
  15. tag = "v0.3.0"
  16. [source."https://github.com/hsivonen/packed_simd"]
  17. git = "https://github.com/hsivonen/packed_simd"
  18. replace-with = "vendored-sources"
  19. -rev = "3541e3818fdc7c2a24f87e3459151a4ce955a67a"
  20. +rev = "0917fe780032a6bbb23d71be545f9c1834128d75"
  21. [source."https://github.com/djg/cubeb-pulse-rs"]
  22. git = "https://github.com/djg/cubeb-pulse-rs"
  23. replace-with = "vendored-sources"
  24. rev = "70431f444cf164177cb3c0f060698fc35f811be5"
  25. [source."https://github.com/bytecodealliance/wasmtime"]
  26. git = "https://github.com/bytecodealliance/wasmtime"
  27. diff --git a/Cargo.lock b/Cargo.lock
  28. --- a/Cargo.lock
  29. +++ b/Cargo.lock
  30. @@ -3573,18 +3573,18 @@ version = "0.4.0"
  31. source = "registry+https://github.com/rust-lang/crates.io-index"
  32. checksum = "49a4b8ea2179e6a2e27411d3bca09ca6dd630821cf6894c6c7c8467a8ee7ef13"
  33. dependencies = [
  34. "stable_deref_trait",
  35. ]
  36. [[package]]
  37. name = "packed_simd"
  38. -version = "0.3.3"
  39. -source = "git+https://github.com/hsivonen/packed_simd?rev=3541e3818fdc7c2a24f87e3459151a4ce955a67a#3541e3818fdc7c2a24f87e3459151a4ce955a67a"
  40. +version = "0.3.4"
  41. +source = "git+https://github.com/hsivonen/packed_simd?rev=0917fe780032a6bbb23d71be545f9c1834128d75#0917fe780032a6bbb23d71be545f9c1834128d75"
  42. dependencies = [
  43. "cfg-if",
  44. ]
  45. [[package]]
  46. name = "parity-wasm"
  47. version = "0.41.0"
  48. source = "registry+https://github.com/rust-lang/crates.io-index"
  49. diff --git a/Cargo.toml b/Cargo.toml
  50. --- a/Cargo.toml
  51. +++ b/Cargo.toml
  52. @@ -61,17 +61,17 @@
  53. [profile.release]
  54. opt-level = 2
  55. rpath = false
  56. debug-assertions = false
  57. panic = "abort"
  58. [patch.crates-io]
  59. libudev-sys = { path = "dom/webauthn/libudev-sys" }
  60. -packed_simd = { git = "https://github.com/hsivonen/packed_simd", rev="3541e3818fdc7c2a24f87e3459151a4ce955a67a" }
  61. +packed_simd = { git = "https://github.com/hsivonen/packed_simd", rev="0917fe780032a6bbb23d71be545f9c1834128d75" }
  62. rlbox_lucet_sandbox = { git = "https://github.com/PLSysSec/rlbox_lucet_sandbox/", rev="d510da5999a744c563b0acd18056069d1698273f" }
  63. nix = { git = "https://github.com/shravanrn/nix/", branch = "r0.13.1", rev="4af6c367603869a30fddb5ffb0aba2b9477ba92e" }
  64. spirv_cross = { git = "https://github.com/kvark/spirv_cross", branch = "wgpu3", rev = "20191ad2f370afd6d247edcb9ff9da32d3bedb9c" }
  65. # failure's backtrace feature might break our builds, see bug 1608157.
  66. failure = { git = "https://github.com/badboy/failure", rev = "64af847bc5fdcb6d2438bec8a6030812a80519a5" }
  67. failure_derive = { git = "https://github.com/badboy/failure", rev = "64af847bc5fdcb6d2438bec8a6030812a80519a5" }
  68. [patch.crates-io.cranelift-codegen]
  69. diff --git a/third_party/rust/packed_simd/.cargo-checksum.json b/third_party/rust/packed_simd/.cargo-checksum.json
  70. --- a/third_party/rust/packed_simd/.cargo-checksum.json
  71. +++ b/third_party/rust/packed_simd/.cargo-checksum.json
  72. @@ -1,1 +1,1 @@
  73. -{"files":{".appveyor.yml":"f1ed01850e0d725f9498f52a1a63ddf40702ad6e0bf5b2d7c4c04d76e96794a3",".travis.yml":"e9258d9a54fdaf4cbc12405fe5993ac4497eb2b29021691dbc91b19cb9b52227","Cargo.toml":"089941ba3c89ea111cbea3cc3abdcdcf2b9d0ae0db268d7269ee38226db950e5","LICENSE-APACHE":"a60eea817514531668d7e00765731449fe14d059d3249e0bc93b36de45f759f2","LICENSE-MIT":"6485b8ed310d3f0340bf1ad1f47645069ce4069dcc6bb46c7d5c6faf41de1fdb","bors.toml":"dee881dc69b9b7834e4eba5d95c3ed5a416d4628815a167d6a22d4cb4fb064b8","build.rs":"f3baefc5e5bb9b250e762a1466371b922fd7ee4243c217b2d014307603c2f57a","ci/all.sh":"a23d14e10cb26a0eb719e389c30eb955fa53cddcd436890646df09af640bd2eb","ci/android-install-ndk.sh":"0f1746108cc30bf9b9ba45bcde7b19fc1a8bdf5b0258035b4eb8dc69b75efac4","ci/android-install-sdk.sh":"3490432022c5c8f5a115c084f7a9aca1626f96c0c87ffb62019228c4346b47e4","ci/android-sysimage.sh":"ebf4e5daa1f0fe1b2092b79f0f3f161c4c4275cb744e52352c4d81ab451e4c5a","ci/benchmark.sh":"b61d19ef6b90deba8fb79dee74c8b062d94844676293da346da87bb78a9a49a4","ci/deploy_and_run_on_ios_simulator.rs":"ec8ecf82d92072676aa47f0d1a3d021b60a7ae3531153ef12d2ff4541fc294dc","ci/docker/aarch64-linux-android/Dockerfile":"ace2e7d33c87bc0f6d3962a4a3408c04557646f7f51ab99cfbf574906796b016","ci/docker/aarch64-unknown-linux-gnu/Dockerfile":"1ecdac757101d951794fb2ab0deaa278199cf25f2e08a15c7d40ff31a8556184","ci/docker/arm-linux-androideabi/Dockerfile":"370e55d3330a413a3ccf677b3afb3e0ef9018a5fab263faa97ae8ac017fc2286","ci/docker/arm-unknown-linux-gnueabi/Dockerfile":"e25d88f6c0c94aada3d2e3f08243f755feb7e869dc5dc505b3799719cb1af591","ci/docker/arm-unknown-linux-gnueabihf/Dockerfile":"f126f4c7bae8c11ab8b16df06ad997863f0838825a9c08c9899a3eedb6d570bd","ci/docker/armv7-unknown-linux-gnueabihf/Dockerfile":"b647545c158ee480a4c581dbdc1f57833aef056c8d498acc04b573e842bf803c","ci/docker/i586-unknown-linux-gnu/Dockerfile":"0d492759017307ccf74dc2aa4a8cf6623daf3dc728c708dc2b18fa7940800cba","ci/docker/i686-unknown-linux-gnu/Dockerfile":"0d492759017307ccf74dc2aa4a8cf6623daf3dc728c708dc2b18fa7940800cba","ci/docker/mips-unknown-linux-gnu/Dockerfile":"323776469bb7b160385f3621d66e3ee14c75242f8180f916e65af048a29d4ea0","ci/docker/mips64-unknown-linux-gnuabi64/Dockerfile":"c647f6948a9a43b0be695cbed4eac752120d0faf28e5e69c718cb10406921dab","ci/docker/mips64el-unknown-linux-gnuabi64/Dockerfile":"77bfd00cc8639509be381b394f077e39b45a00158ad61b4e1656714c714665d1","ci/docker/mipsel-unknown-linux-musl/Dockerfile":"ec5bea6c98a3b626731fdb95f9ff2d1182639c76e8fb16d3271d0fc884901524","ci/docker/powerpc-unknown-linux-gnu/Dockerfile":"4f2b662de66e83d1354f650b7077692309637f786c2ea5516c31b5c2ee10af2d","ci/docker/powerpc64-unknown-linux-gnu/Dockerfile":"a9595402b772bc365982e22a0096a8988825d90b09b5faa97ab192e76072f71d","ci/docker/powerpc64le-unknown-linux-gnu/Dockerfile":"df3c381c157439695ae8cd10ab71664702c061e3b4ab22906a5ad6c2680acfed","ci/docker/s390x-unknown-linux-gnu/Dockerfile":"93fb44df3d7fd31ead158570667c97b5076a05c3d968af4a84bc13819a8f2db8","ci/docker/sparc64-unknown-linux-gnu/Dockerfile":"da1c39a3ff1fe22e41395fa7c8934e90b4c1788e551b9aec6e38bfd94effc437","ci/docker/thumbv7neon-linux-androideabi/Dockerfile":"c2decd5591bd7a09378901bef629cd944acf052eb55e4f35b79eb9cb4d62246a","ci/docker/thumbv7neon-unknown-linux-gnueabihf/Dockerfile":"75c0c56161c7382b439de74c00de1c0e3dc9d59560cd6720976a751034b78714","ci/docker/wasm32-unknown-unknown/Dockerfile":"3e5f294bc1e004aa599086c2af49d6f3e7459fa250f5fbdd60cf67d53db78758","ci/docker/x86_64-linux-android/Dockerfile":"685040273cf350d5509e580ac451555efa19790c8723ca2af066adadc6880ad2","ci/docker/x86_64-unknown-linux-gnu-emulated/Dockerfile":"44b6203d9290bfdc53d81219f0937e1110847a23dd982ec8c4de388354f01536","ci/docker/x86_64-unknown-linux-gnu/Dockerfile":"d253c86803b22da428fa9cc671a05f18d3318eca7733b8dccb4f7be1ddf524c5","ci/dox.sh":"5b61711be47a4e3dde0ddd15ba73d256ea95fd75af3897732c24db1dc7e66366","ci/linux-s390x.sh":"d6b732d7795b4ba131326aff893bca6228a7d2eb0e9402f135705413dbbe0dce","ci/linux-sparc64.sh":"c92966838b1ab7ad3b7a344833ee726aba6b647cf5952e56f0ad1ba420b13325","ci/lld-shim.rs":"3d7f71ec23a49e2b67f694a0168786f9a954dda15f5a138815d966643fd3fcc3","ci/max_line_width.sh":"0a1518bba4c9ecaa55694cb2e9930d0e19c265baabf73143f17f9cf285aaa5bb","ci/run-docker.sh":"92e036390ad9b0d16f109579df1b5ced2e72e9afea40c7d011400ebd3a2a90de","ci/run.sh":"63259e22a96ba539f53c06b1b39f53e3a78a71171652e7afc170836110ccd913","ci/run_examples.sh":"d1a23c6c35374a0678ba5114b9b8fefd8be0a79e774872a8bf0898d1baca18d0","ci/runtest-android.rs":"145a8e9799a5223975061fe7e586ade5669ee4877a7d7a4cf6b4ab48e8e36c7c","ci/setup_benchmarks.sh":"73fb981a8fdb1dcd54409d3c0fbbfb8f77a3ceabf8626a6b9bf9d21d6bc8ce72","ci/test-runner-linux":"c8aa6025cff5306f4f31d0c61dc5f9d4dd5a1d189ab613ef8d4c367c694d9ccd","contributing.md":"2cc8c9c560ae17867e69b06d09b758dbf7bc39eb774ada50a743724b10acc0a2","perf-guide/.gitignore":"fe82c7da551079d832cf74200b0b359b4df9828cb4a0416fa7384f07a2ae6a13","perf-guide/book.toml":"115a98284126c6b180178b44713314cc494f08a71662ee2ce15cf67f17a51064","perf-guide/src/SUMMARY.md":"3e03bffc991fdc2050f3d51842d72d9d21ea6abab56a3baf3b2d5973a78b89e1","perf-guide/src/ascii.css":"29afb08833b2fe2250f0412e1fa1161a2432a0820a14953c87124407417c741a","perf-guide/src/bound_checks.md":"5e4991ff58a183ef0cd9fdc1feb4cd12d083b44bdf87393bbb0927808ef3ce7d","perf-guide/src/float-math/approx.md":"8c09032fa2d795a0c5db1775826c850d28eb2627846d0965c60ee72de63735ad","perf-guide/src/float-math/fma.md":"311076ba4b741d604a82e74b83a8d7e8c318fcbd7f64c4392d1cf5af95c60243","perf-guide/src/float-math/fp.md":"04153e775ab6e4f0d7837bcc515230d327b04edfa34c84ce9c9e10ebaeef2be8","perf-guide/src/float-math/svml.md":"0798873b8eedaeda5fed62dc91645b57c20775a02d3cd74d8bd06958f1516506","perf-guide/src/introduction.md":"9f5a19e9e6751f25d2daad39891a0cc600974527ec4c8305843f9618910671bd","perf-guide/src/prof/linux.md":"447731eb5de7d69166728fdbc5ecb0c0c9db678ea493b45a592d67dd002184c0","perf-guide/src/prof/mca.md":"f56d54f3d20e7aa4d32052186e8237b03d65971eb5d112802b442570ff11d344","perf-guide/src/prof/profiling.md":"8a650c0fd6ede0964789bb6577557eeef1d8226a896788602ce61528e260e43c","perf-guide/src/target-feature/attribute.md":"615f88dca0a707b6c416fa605435dd6e1fb5361cc639429cbf68cd87624bd78b","perf-guide/src/target-feature/features.md":"17077760ff24c006b606dd21889c53d87228f4311f3ba3a574f9afdeacd86165","perf-guide/src/target-feature/inlining.md":"7ed1d7068d8173a00d84c16cfe5871cd68b9f04f8d0cca2d01ebc84957ebf2f6","perf-guide/src/target-feature/practice.md":"c4b371842e0086df178488fec97f20def8f0c62ee588bcd25fd948b9b1fa227e","perf-guide/src/target-feature/runtime.md":"835425f5ee597fb3e51d36e725a81ebee29f4561231d19563cd4da81dbb1cfcb","perf-guide/src/target-feature/rustflags.md":"ab49712e9293a65d74d540ba4784fcb57ff1119ec05a575d895c071f1a620f64","perf-guide/src/vert-hor-ops.md":"c6211c0ee91e60552ec592d89d9d957eedc21dee3cbd89e1ad6765ea06a27471","readme.md":"585a8f0e16877fb9abb00cd17a175fcb9d7857840c6c61209f1827ffab095070","rustfmt.toml":"de6101d0670bad65fb3b337d56957d2a024e017e5ab146ec784d77312daaf8ff","src/api.rs":"331a3a4abb19cee2df5f2df4ad7c3e88b45e62cf23fdacfc9bbaa633dc5cf788","src/api/bit_manip.rs":"e68290ee679cc5abc9c73afbe635c1035f8cbfe849e5c751a1680e459244c39e","src/api/cast.rs":"03b94a3d316ac7b7be7068810044911e965e889a0ace7bae762749ca74a92747","src/api/cast/macros.rs":"b0a14d0c83ad2ebb7a275180f6d9e3f2bc312ba57a7d3d6c39fad4e0f20f9408","src/api/cast/v128.rs":"63e28c6a3edf1a7a635f51b8d3c6adbb1d46f884d92a196b3d4a6e743d809416","src/api/cast/v16.rs":"2a584eeb57fd47baad6f3533764301b04aaaac23702b7a8db12598ac02899262","src/api/cast/v256.rs":"b91c15ed8d1536ecd97b4eb79ff9d5aba0552cd9b6f0ea6435b05f2273e23b3a","src/api/cast/v32.rs":"62ec89fcce7fa7f28497ee5770adc8f81d2d3a6b2925b02f7dc06504c40e8f38","src/api/cast/v512.rs":"d855cb943ae7106e9599ef38e30a3afb1c6bd5433178baca54cb128fd9a7d143","src/api/cast/v64.rs":"fe0f7dfaf4fc0c0c1a78c96fcfcdfdc2a1e2845843b11aa797a0c6fb52a8f774","src/api/cmp.rs":"357c3a2a09c6d4611c32dd7fa95be2fae933d513e229026ec9b44451a77b884e","src/api/cmp/eq.rs":"60f70f355bae4cb5b17db53204cacc3890f70670611c17df638d4c04f7cc8075","src/api/cmp/ord.rs":"589f7234761c294fa5df8f525bc4acd5a47cdb602207d524a0d4e19804cd9695","src/api/cmp/partial_eq.rs":"3ed23d2a930b0f9750c3a5309da766b03dc4f9c4d375b42ad3c50fe732693d15","src/api/cmp/partial_ord.rs":"e16b11805c94048acd058c93994b5bc74bb187f8d7e3b86a87df60e1601467f9","src/api/cmp/vertical.rs":"de3d62f38eba817299aa16f1e1939954c9a447e316509397465c2830852ba053","src/api/default.rs":"b61f92fc0e33a2633b3375eb405beba480da071cde03df4d437d8a6058afcd97","src/api/fmt.rs":"67fb804bb86b6cd77cf8cd492b5733ce437071b66fe3297278b8a6552c325dda","src/api/fmt/binary.rs":"35cb5c266197d6224d598fb3d286e5fe48ef0c01ed356c2ff6fe9ba946f96a92","src/api/fmt/debug.rs":"aa18eea443bf353fea3db8b1a025132bbcaf91e747ecfa43b8d9fce9af395a0c","src/api/fmt/lower_hex.rs":"69d5be366631af309f214e8031c8c20267fcc27a695eac6f45c6bc1df72a67e6","src/api/fmt/octal.rs":"9eb11ba3d990213f3c7f1ec25edba7ce997cb1320e16d308c83498ba6b9bfbd9","src/api/fmt/upper_hex.rs":"a4637d085b7bb20e759ce58e08435b510a563ba3dd468af2b03560fdc5511562","src/api/from.rs":"2e599d8329cb05eaf06224cc441355c4b7b51254fc19256619333be8c149d444","src/api/from/from_array.rs":"4151593c7bba7455821fffa5b59867005a77c95d32f1f0cc3fd87294000157d9","src/api/from/from_vector.rs":"9764371aa9e6005aace74dea14f59e5611a095b7cf42707940924749282c52f0","src/api/hash.rs":"562cfa3f1d8eb9a733c035a3665a599c2f1e341ee820d8fbdd102a4398a441bc","src/api/into_bits.rs":"82297f0697d67b5a015e904e7e6e7b2a7066ba825bc54b94b4ff3e22d7a1eefb","src/api/into_bits/arch_specific.rs":"1f925390b0ce7132587d95f2419c6e2ad3e1a9d17eb1d9c120a1c1c4bdf4277e","src/api/into_bits/macros.rs":"d762406de25aedff88d460dec7a80dc8e825a2a419d53218ce007efa6a1d3e04","src/api/into_bits/v128.rs":"ecdc5893664c71d7ab1ff3697c3fbe490d20d8748b9b76881d05e7625e40d74c","src/api/into_bits/v16.rs":"5459ec7dad1ad7bd30dc7e48374580b993abf23701d9c3cb22203fa0a9aabb6d","src/api/into_bits/v256.rs":"90ea351da0380ead1bf0f63b620afd40d01d638d09f7e7be31840bd2c1d9c663","src/api/into_bits/v32.rs":"ee1dc5a430050e16f51154b5fe85b1536f5feddf2ea23dd1d3859b67c4afc6fc","src/api/into_bits/v512.rs":"f72098ed1c9a23944f3d01abaf5e0f2d0e81d35a06fdadd2183e896d41b59867","src/api/into_bits/v64.rs":"6394462facdfe7827349c742b7801f1291e75a720dfb8c0b52100df46f371c98","src/api/math.rs":"8b2a2fc651917a850539f993aa0b9e5bf4da67b11685285b8de8cdca311719ec","src/api/math/float.rs":"61d2794d68262a1090ae473bd30793b5f65cf732f32a6694a3af2ce5d9225616","src/api/math/float/abs.rs":"5b6b2701e2e11135b7ce58a05052ea8120e10e4702c95d046b9d21b827b26bf8","src/api/math/float/consts.rs":"78acba000d3fa527111300b6327c1932de9c4c1e02d4174e1a5615c01463d38c","src/api/math/float/cos.rs":"4c2dd7173728ef189314f1576c9486e03be21b7da98843b2f9011282a7979e31","src/api/math/float/exp.rs":"7c6d5f1e304f498a01cfa23b92380c815d7da0ad94eae3483783bc377d287eef","src/api/math/float/ln.rs":"54c7583f3df793b39ff57534fade27b41bb992439e5dc178252f5ca3190a3e54","src/api/math/float/mul_add.rs":"62cac77660d20159276d4c9ef066eb90c81cbddb808e8e157182c607625ad2eb","src/api/math/float/mul_adde.rs":"bae056ee9f3a70df39ec3c3b2f6437c65303888a7b843ef1a5bcf1f5aca0e602","src/api/math/float/powf.rs":"9ddb938984b36d39d82a82f862f80df8f7fb013f1d222d45698d41d88472f568","src/api/math/float/recpre.rs":"589225794ff1dbf31158dff660e6d4509ecc8befbb57c633900dea5ac0b840d6","src/api/math/float/rsqrte.rs":"a32abdcc318d7ccc8448231f54d75b884b7cbeb03a7d595713ab6243036f4dbf","src/api/math/float/sin.rs":"cbd3622b7df74f19691743001c8cf747a201f8977ad90542fee915f37dcd1e49","src/api/math/float/sqrt.rs":"0c66d5d63fb08e4d99c6b82a8828e41173aff1ac9fa1a2764a11fac217ccf2ac","src/api/math/float/sqrte.rs":"731e1c9f321b662accdd27dacb3aac2e8043b7aecb2f2161dde733bd9f025362","src/api/minimal.rs":"1f22bcc528555444e76de569ec0ae2029b9ae9d04805efeafa93369c8098036b","src/api/minimal/iuf.rs":"c501a6696950cf5e521765f178de548af64fdfb6e10d026616d09fab93ca2d17","src/api/minimal/mask.rs":"42e415f536c5193d0218f5a754b34b87fd7c971bff068009f958712166ff056d","src/api/minimal/ptr.rs":"a9ee482d1dd1c956fb8f3f179e6e620b1de4e9d713961461d4c6923a4ef2e67c","src/api/ops.rs":"3e273b277a0f3019d42c3c59ca94a5afd4885d5ae6d2182e5089bbeec9de42ee","src/api/ops/scalar_arithmetic.rs":"d2d5ad897a59dd0787544f927e0e7ca4072c3e58b0f4a2324083312b0d5a21d7","src/api/ops/scalar_bitwise.rs":"482204e459ca6be79568e1c9f70adbe2d2151412ddf122fb2161be8ebb51c40c","src/api/ops/scalar_mask_bitwise.rs":"c250f52042e37b22d57256c80d4604104cfd2fbe2a2e127c676267270ca5d350","src/api/ops/scalar_shifts.rs":"987f8fdebeedc16e3d77c1b732e7826ef70633c541d16dfa290845d5c6289150","src/api/ops/vector_arithmetic.rs":"ddca15d09ddeef502c2ed66117a62300ca65d87e959e8b622d767bdf1c307910","src/api/ops/vector_bitwise.rs":"b3968f7005b649edcc22a54e2379b14d5ee19045f2e784029805781ae043b5ee","src/api/ops/vector_float_min_max.rs":"f5155dce75219f4ba11275b1f295d2fdcddd49d174a6f1fb2ace7ea42813ce41","src/api/ops/vector_int_min_max.rs":"a378789c6ff9b32a51fbd0a97ffd36ed102cd1fe6a067d2b02017c1df342def6","src/api/ops/vector_mask_bitwise.rs":"5052d18517d765415d40327e6e8e55a312daaca0a5e2aec959bfa54b1675f9c8","src/api/ops/vector_neg.rs":"5c62f6b0221983cdbd23cd0a3af3672e6ba1255f0dfe8b19aae6fbd6503e231b","src/api/ops/vector_rotates.rs":"03cbe8a400fd7c688e4ee771a990a6754f2031b1a59b19ae81158b21471167e5","src/api/ops/vector_shifts.rs":"9bf69d0087268f61009e39aea52e03a90f378910206b6a28e8393178b6a5d0e0","src/api/ptr.rs":"8a793251bed6130dcfb2f1519ceaa18b751bbb15875928d0fb6deb5a5e07523a","src/api/ptr/gather_scatter.rs":"9ddd960365e050674b25b2fd3116e24d94669b4375d74e71c03e3f1469576066","src/api/reductions.rs":"ae5baca81352ecd44526d6c30c0a1feeda475ec73ddd3c3ec6b14e944e5448ee","src/api/reductions/bitwise.rs":"8bf910ae226188bd15fc7e125f058cd2566b6186fcd0cd8fd020f352c39ce139","src/api/reductions/float_arithmetic.rs":"e58c8c87806a95df2b2b5b48ac5991036df024096d9d7c171a480fe9282896a4","src/api/reductions/integer_arithmetic.rs":"47471da1c5f859489680bb5d34ced3d3aa20081c16053a3af121a4496fcb57bf","src/api/reductions/mask.rs":"db83327a950e33a317f37fd33ca4e20c347fb415975ec024f3e23da8509425af","src/api/reductions/min_max.rs":"f27be3aa28e1c1f46de7890198db6e12f00c207085e89ef2de7e57ee443cdb98","src/api/select.rs":"a98e2ccf9fc6bdeed32d337c8675bc96c2fbe2cc34fbf149ad6047fb8e749774","src/api/shuffle.rs":"da58200790868c09659819322a489929a5b6e56c596ed07e6a44293ea02e7d09","src/api/shuffle1_dyn.rs":"bfea5a91905b31444e9ef7ca6eddb7a9606b7e22d3f71bb842eb2795a0346620","src/api/slice.rs":"ee87484e8af329547b9a5d4f2a69e8bed6ea10bbd96270d706083843d4eea2ac","src/api/slice/from_slice.rs":"4d4fe8a329c885fcb4fbcbedf99efb15a95296fe6b3f595056cc37037450d5ac","src/api/slice/write_to_slice.rs":"f5b23b2c4b91cfb26b713a9013a6c0da7f45eaefb79ba06dcbc27f3f23bda679","src/api/swap_bytes.rs":"4a6792a2e49a77475e1b237592b4b2804dbddb79c474331acd0dd71b36934259","src/codegen.rs":"c6eebc3d3665420aa6a2f317977e3c41a4f43e0550ac630cdbe8e4bbed5e2031","src/codegen/bit_manip.rs":"5559e095105a80003e0de35af1d19b0c65c9ab04eb743c7e01c5442d882eb34e","src/codegen/llvm.rs":"d1299c189abb17a6133f047574cffc7a6db4c1be37cb7d4785491cb5e8f8cf54","src/codegen/math.rs":"35f96e37a78fcf0cdb02146b7f27a45108fe06a37fc2a54d8851ce131a326178","src/codegen/math/float.rs":"dd86c0449e576c83b719700962ac017c332987fac08d91f2b7a2b1b883598170","src/codegen/math/float/abs.rs":"f56e2b4b8055ea861c1f5cbc6b6e1d8e7e5af163b62c13574ddee4e09513bfbc","src/codegen/math/float/cos.rs":"ef3b511a24d23045b310315e80348a9b7fedb576fc2de52d74290616a0abeb2a","src/codegen/math/float/cos_pi.rs":"4e7631a5d73dac21531e09ef1802d1180f8997509c2c8fa9f67f322194263a97","src/codegen/math/float/exp.rs":"61b691598c41b5622f24e4320c1bdd08701e612a516438bdddcc728fc3405c8c","src/codegen/math/float/ln.rs":"46b718b1ba8c9d99e1ad40f53d20dfde08a3063ca7bd2a9fdd6698e060da687e","src/codegen/math/float/macros.rs":"dd42135fff13f9aca4fd3a1a4e14c7e6c31aadc6d817d63b0d2fb9e62e062744","src/codegen/math/float/mul_add.rs":"a37bf764345d4b1714f97e83897b7cf0855fc2811704bcbc0012db91825339e1","src/codegen/math/float/mul_adde.rs":"c75702bfcb361de45964a93caf959a695ef2376bd069227600b8c6872665c755","src/codegen/math/float/powf.rs":"642346e982bc4c39203de0864d2149c4179cd7b21cf67a2951687932b4675872","src/codegen/math/float/sin.rs":"9d68164c90cdca6a85155040cdac42e27342ebe0b925273ef1593df721af4258","src/codegen/math/float/sin_cos_pi.rs":"9be02ad48585a1e8d99129382fbffbaed47852f15459256a708850b6b7a75405","src/codegen/math/float/sin_pi.rs":"9890347905b4d4a3c7341c3eb06406e46e60582bcf6960688bd727e5dadc6c57","src/codegen/math/float/sqrt.rs":"e3c60dcfb0c6d2fc62adabcc931b2d4040b83cab294dea36443fb4b89eb79e34","src/codegen/math/float/sqrte.rs":"f0f4ef9eb475ae41bcc7ec6a95ad744ba6b36925faa8b2c2814004396d196b63","src/codegen/pointer_sized_int.rs":"a70697169c28218b56fd2e8d5353f2e00671d1150d0c8cef77d613bdfacd84cb","src/codegen/reductions.rs":"645e2514746d01387ddd07f0aa4ffd8430cc9ab428d4fb13773ea319fa25dd95","src/codegen/reductions/mask.rs":"8f1afe6aabf096a3278e1fc3a30f736e04aa8b9ce96373cee22162d18cfe2702","src/codegen/reductions/mask/aarch64.rs":"cba6e17603d39795dcfe8339b6b7d8714c3e162a1f0a635979f037aa24fe4206","src/codegen/reductions/mask/arm.rs":"9447904818aa2c7c25d0963eead452a639a11ca7dbd6d21eedbfcaade07a0f33","src/codegen/reductions/mask/fallback.rs":"7a0ef9f7fd03ae318b495b95e121350cd61caffc5cc6ee17fabf130d5d933453","src/codegen/reductions/mask/fallback_impl.rs":"76547f396e55ef403327c77c314cf8db8c7a5c9b9819bfb925abeacf130249e5","src/codegen/reductions/mask/x86.rs":"14bd2c482071f2355beebcf7b7ecf950ff2dfcdb08c3ca50993092434a9de717","src/codegen/reductions/mask/x86/avx.rs":"b4913d87844c522903641cbbf10db4551addb1ce5e9e78278e21612fa65c733b","src/codegen/reductions/mask/x86/avx2.rs":"677aed3f056285285daa3adff8bc65e739630b4424defa6d9665e160f027507e","src/codegen/reductions/mask/x86/sse.rs":"226610b4ff88c676d5187114dd57b4a8800de6ce40884675e9198445b1ed0306","src/codegen/reductions/mask/x86/sse2.rs":"bc38e6c31cb4b3d62147eba6cac264e519e2a48e0f7ce9010cfa9ef0cf0ec9fd","src/codegen/shuffle.rs":"0abca97e92cdce49a58a39cc447eb09dc7d7715ef256c8dbd2181a186e61bb64","src/codegen/shuffle1_dyn.rs":"04523e9338133bdedb012dd076c2c564b79ce5593b0fc56d0fb6910e04190a81","src/codegen/swap_bytes.rs":"1d6cdc716eadddc92b4fd506b2445a821caa8dc00860447de09d7ebd69c2087f","src/codegen/v128.rs":"94226b31ec403d18d9d2fe06713f147c9c79e9b5f9105089088266313f843185","src/codegen/v16.rs":"ddec4ffb66b6f7aaffb9a1780c5ddba82557abd74f45073d335047e04cf74924","src/codegen/v256.rs":"6b63917f0444118d6b1595bff2045e59b97c4d24012bd575f69f1f0efc5a0241","src/codegen/v32.rs":"3477b3c5540aed86e61e2f5807dd31db947413cec9181c587d93ed6ec74f0eba","src/codegen/v512.rs":"5854f99d3aabc4cd42b28a20d9ce447756dc2ba024a409a69b6a8ae1f1842fc5","src/codegen/v64.rs":"e9e89caebfe63d10c0cbca61e4dfdba3b7e02ee0989170f80beed23237ddd950","src/codegen/vPtr.rs":"96d609a9eece4dcbbcc01ba0b8744d7f5958be12774176a2945bc676f4e6b5cb","src/codegen/vSize.rs":"eeee9858749aa82142b27bc120d1989bb74a6b82e1e4efbbeaccc9634dc9acfc","src/lib.rs":"1b5d419ff05ee0370d671810423ccc254708cc8d415c1dbac2a7a36be4bf63a8","src/masks.rs":"870f429967b2d7d5133f4d28d6c753fc5cef0570b27b29d4e966a066d22d2d0e","src/sealed.rs":"ff7f0324276408ae8249941cfa32c90b8835a54d750896b683efea857af19db2","src/testing.rs":"1d3a7862ef625e235a5734ad7204e68d350f902c0695182b1f08a0552432416e","src/testing/macros.rs":"6378856d7a40ba5ec5c7c0dad6327d79f0c77266921c24296d10aed6c68e9b98","src/testing/utils.rs":"d6fd5a5017f1f85d9d99585754f8f6ad06fc3d683b34083543e67a7cc6c1772c","src/v128.rs":"18fe263c4aa28cd06461c7070b0269f69f4a2e75749b8f142a83dfdfe4d22bf5","src/v16.rs":"e5c663c9fb3547eaeac78a5f7db9969f4d8b5ec96112bf2954602fff11f0aebd","src/v256.rs":"68732cd688ad12a56d8b4f8ddf279f77bdfe1be2943c7dc0c1b4f1a76798aa0f","src/v32.rs":"785b22a1ccb4a41bb53dfeb0670f624c0ce42e6cdf62d1747e3283777a1c70bd","src/v512.rs":"d1337bfe07f06a8f37f8e8fa7d4315b9307476ee435ad80dd5269eaed564fbfa","src/v64.rs":"3077468d65125b8f085e9454c8b2463a4d5225697464ba6a1300f8799528fd4b","src/vPtr.rs":"c9a53f41f466e17b6648a4ce390fd8f4d3a848d440eb8a9a803a11608d76eb05","src/vSize.rs":"5c46d3e8c3ee5863d9b6e37e681f871386e0efc254d6d84ba711edb529ce7b3c","tests/endianness.rs":"541a144be017e3dd7da7c8ea49d907dc02538245e8c5f3deb5bd43da92c929e1"},"package":null}
  74. \ No newline at end of file
  75. +{"files":{".appveyor.yml":"f1ed01850e0d725f9498f52a1a63ddf40702ad6e0bf5b2d7c4c04d76e96794a3",".travis.yml":"d56de6531d3c4880e3aada85ac8e6d7388e5d781871e181cb8ade2a746d5d5f5","Cargo.toml":"e94ccb82002e8b55680c2c5fec554a9e864c5f354e113278d0aa927df279330d","LICENSE-APACHE":"a60eea817514531668d7e00765731449fe14d059d3249e0bc93b36de45f759f2","LICENSE-MIT":"6485b8ed310d3f0340bf1ad1f47645069ce4069dcc6bb46c7d5c6faf41de1fdb","README.md":"49d01e49a33393af64fa6c813b6a724f68a4d1abfbedcb96413651ed105aa820","bors.toml":"dee881dc69b9b7834e4eba5d95c3ed5a416d4628815a167d6a22d4cb4fb064b8","build.rs":"c3312e786c7fcb8f16c0785fe235ebbcf43fbeab6d7d683752f62043ca92d887","ci/all.sh":"2ae6b2445b4db83833e40b37efd0016c6b9879ee988b9b3ef94db5439a3e1606","ci/android-install-ndk.sh":"0f1746108cc30bf9b9ba45bcde7b19fc1a8bdf5b0258035b4eb8dc69b75efac4","ci/android-install-sdk.sh":"3490432022c5c8f5a115c084f7a9aca1626f96c0c87ffb62019228c4346b47e4","ci/android-sysimage.sh":"ebf4e5daa1f0fe1b2092b79f0f3f161c4c4275cb744e52352c4d81ab451e4c5a","ci/benchmark.sh":"b61d19ef6b90deba8fb79dee74c8b062d94844676293da346da87bb78a9a49a4","ci/deploy_and_run_on_ios_simulator.rs":"ec8ecf82d92072676aa47f0d1a3d021b60a7ae3531153ef12d2ff4541fc294dc","ci/docker/aarch64-linux-android/Dockerfile":"ace2e7d33c87bc0f6d3962a4a3408c04557646f7f51ab99cfbf574906796b016","ci/docker/aarch64-unknown-linux-gnu/Dockerfile":"da88c0d50f16dc08448c7fdf1fa5ed2cbe576acf9e7dd85b5b818621b2a8c702","ci/docker/arm-linux-androideabi/Dockerfile":"370e55d3330a413a3ccf677b3afb3e0ef9018a5fab263faa97ae8ac017fc2286","ci/docker/arm-unknown-linux-gnueabi/Dockerfile":"bb5f8ae890707c128652290ffc544447643bf12037ddd73c6ad6989f848cb380","ci/docker/arm-unknown-linux-gnueabihf/Dockerfile":"1afaefcbc05b740859acd4e067bc92439be6bcbe8f2e9678474fb434bcd398d9","ci/docker/armv7-unknown-linux-gnueabihf/Dockerfile":"8282ea707a94109beed47a57574755e2d58401735904a03f85fb64c578c53b4f","ci/docker/i586-unknown-linux-gnu/Dockerfile":"49792922269f371bd29da4727e9085101b27be67a6b97755d0196c63317f7abb","ci/docker/i686-unknown-linux-gnu/Dockerfile":"49792922269f371bd29da4727e9085101b27be67a6b97755d0196c63317f7abb","ci/docker/mips-unknown-linux-gnu/Dockerfile":"b2ebc25797612c4f8395fe9d407725156044955bfbcf442036b7f55b43a5f9da","ci/docker/mips64-unknown-linux-gnuabi64/Dockerfile":"b0c1692ac65bc56dd30494b1993d8e929c48cc9c4b92029b7c7592af6d4f9220","ci/docker/mips64el-unknown-linux-gnuabi64/Dockerfile":"4e9249c179300138141d0b2b7401b11897f64aed69f541f078c1db4594df2827","ci/docker/mipsel-unknown-linux-musl/Dockerfile":"3164c52b0dcbb01afa78292b15b5c43503ccf0491cf6eb801ec2bf22ae274e52","ci/docker/powerpc-unknown-linux-gnu/Dockerfile":"786f799d0b56eb54d7b6c4b00e1aed4ce81776e14e44767e083c89d014b72004","ci/docker/powerpc64-unknown-linux-gnu/Dockerfile":"e8bc363837cd9c2d8b22402acb8c1c329efc11ba5d12170603d2fe2eae9da059","ci/docker/powerpc64le-unknown-linux-gnu/Dockerfile":"47998d45b781d797b9e6085ebe898d90de0c952b54537a8db4e8d7503eb032d9","ci/docker/s390x-unknown-linux-gnu/Dockerfile":"93fb44df3d7fd31ead158570667c97b5076a05c3d968af4a84bc13819a8f2db8","ci/docker/sparc64-unknown-linux-gnu/Dockerfile":"da1c39a3ff1fe22e41395fa7c8934e90b4c1788e551b9aec6e38bfd94effc437","ci/docker/thumbv7neon-linux-androideabi/Dockerfile":"c2decd5591bd7a09378901bef629cd944acf052eb55e4f35b79eb9cb4d62246a","ci/docker/thumbv7neon-unknown-linux-gnueabihf/Dockerfile":"51955a8bf3c4d440f47382af6f5426ebff94ab01a04da36175babda9a057740f","ci/docker/wasm32-unknown-unknown/Dockerfile":"3e5f294bc1e004aa599086c2af49d6f3e7459fa250f5fbdd60cf67d53db78758","ci/docker/x86_64-linux-android/Dockerfile":"685040273cf350d5509e580ac451555efa19790c8723ca2af066adadc6880ad2","ci/docker/x86_64-unknown-linux-gnu-emulated/Dockerfile":"44b6203d9290bfdc53d81219f0937e1110847a23dd982ec8c4de388354f01536","ci/docker/x86_64-unknown-linux-gnu/Dockerfile":"7f4e3ca5fa288ea70edb4d1f75309708cd30b192e2e4444e61c4d5b3b58f89cf","ci/dox.sh":"434e9611c52e389312d2b03564adf09429f10cc76fe66a8644adb104903b87b7","ci/linux-s390x.sh":"d6b732d7795b4ba131326aff893bca6228a7d2eb0e9402f135705413dbbe0dce","ci/linux-sparc64.sh":"c92966838b1ab7ad3b7a344833ee726aba6b647cf5952e56f0ad1ba420b13325","ci/lld-shim.rs":"3d7f71ec23a49e2b67f694a0168786f9a954dda15f5a138815d966643fd3fcc3","ci/max_line_width.sh":"0a1518bba4c9ecaa55694cb2e9930d0e19c265baabf73143f17f9cf285aaa5bb","ci/run-docker.sh":"92e036390ad9b0d16f109579df1b5ced2e72e9afea40c7d011400ebd3a2a90de","ci/run.sh":"41dd6a60efaaeae9661a01370cce98b631f78392859a0cf68c946c0a16edf5f7","ci/run_examples.sh":"d1a23c6c35374a0678ba5114b9b8fefd8be0a79e774872a8bf0898d1baca18d0","ci/runtest-android.rs":"145a8e9799a5223975061fe7e586ade5669ee4877a7d7a4cf6b4ab48e8e36c7c","ci/setup_benchmarks.sh":"fae3960023f6f3d1388cd2ad22fdbab4b075f1f29dd4292d7994a20783beb6cf","ci/test-runner-linux":"c8aa6025cff5306f4f31d0c61dc5f9d4dd5a1d189ab613ef8d4c367c694d9ccd","contributing.md":"2cc8c9c560ae17867e69b06d09b758dbf7bc39eb774ada50a743724b10acc0a2","perf-guide/.gitignore":"fe82c7da551079d832cf74200b0b359b4df9828cb4a0416fa7384f07a2ae6a13","perf-guide/book.toml":"115a98284126c6b180178b44713314cc494f08a71662ee2ce15cf67f17a51064","perf-guide/src/SUMMARY.md":"3e03bffc991fdc2050f3d51842d72d9d21ea6abab56a3baf3b2d5973a78b89e1","perf-guide/src/ascii.css":"29afb08833b2fe2250f0412e1fa1161a2432a0820a14953c87124407417c741a","perf-guide/src/bound_checks.md":"5e4991ff58a183ef0cd9fdc1feb4cd12d083b44bdf87393bbb0927808ef3ce7d","perf-guide/src/float-math/approx.md":"8c09032fa2d795a0c5db1775826c850d28eb2627846d0965c60ee72de63735ad","perf-guide/src/float-math/fma.md":"311076ba4b741d604a82e74b83a8d7e8c318fcbd7f64c4392d1cf5af95c60243","perf-guide/src/float-math/fp.md":"04153e775ab6e4f0d7837bcc515230d327b04edfa34c84ce9c9e10ebaeef2be8","perf-guide/src/float-math/svml.md":"0798873b8eedaeda5fed62dc91645b57c20775a02d3cd74d8bd06958f1516506","perf-guide/src/introduction.md":"9f5a19e9e6751f25d2daad39891a0cc600974527ec4c8305843f9618910671bd","perf-guide/src/prof/linux.md":"447731eb5de7d69166728fdbc5ecb0c0c9db678ea493b45a592d67dd002184c0","perf-guide/src/prof/mca.md":"f56d54f3d20e7aa4d32052186e8237b03d65971eb5d112802b442570ff11d344","perf-guide/src/prof/profiling.md":"8a650c0fd6ede0964789bb6577557eeef1d8226a896788602ce61528e260e43c","perf-guide/src/target-feature/attribute.md":"615f88dca0a707b6c416fa605435dd6e1fb5361cc639429cbf68cd87624bd78b","perf-guide/src/target-feature/features.md":"17077760ff24c006b606dd21889c53d87228f4311f3ba3a574f9afdeacd86165","perf-guide/src/target-feature/inlining.md":"7ed1d7068d8173a00d84c16cfe5871cd68b9f04f8d0cca2d01ebc84957ebf2f6","perf-guide/src/target-feature/practice.md":"c4b371842e0086df178488fec97f20def8f0c62ee588bcd25fd948b9b1fa227e","perf-guide/src/target-feature/runtime.md":"835425f5ee597fb3e51d36e725a81ebee29f4561231d19563cd4da81dbb1cfcb","perf-guide/src/target-feature/rustflags.md":"ab49712e9293a65d74d540ba4784fcb57ff1119ec05a575d895c071f1a620f64","perf-guide/src/vert-hor-ops.md":"c6211c0ee91e60552ec592d89d9d957eedc21dee3cbd89e1ad6765ea06a27471","rustfmt.toml":"de6101d0670bad65fb3b337d56957d2a024e017e5ab146ec784d77312daaf8ff","src/api.rs":"f6e92f056565e6fd93f98829a408aee9e790251e0cbd8a8bc30c8662b4d6fabb","src/api/bit_manip.rs":"c47a4d0f7451f7e35d07715e4f39a472e07457fd456fdb726864a4f6887252a3","src/api/bitmask.rs":"6d2beefd62ee5d9c8eb060bee6abc641616bf828c99f82abf97b21bf004e894b","src/api/cast.rs":"03b94a3d316ac7b7be7068810044911e965e889a0ace7bae762749ca74a92747","src/api/cast/macros.rs":"b0a14d0c83ad2ebb7a275180f6d9e3f2bc312ba57a7d3d6c39fad4e0f20f9408","src/api/cast/v128.rs":"2107ea6a426a0fe37a0aa6a03a579ff0bdeb5a1599ea76e2d81734a82f41276d","src/api/cast/v16.rs":"d785cf93b8e61200c9ae1c32b9f5e9d9518e87c261c56bcaf92f2e47b0009eb4","src/api/cast/v256.rs":"b81fcfd367a5de532d922dedf18579e53666facef7957c0e1bc827825e500ae6","src/api/cast/v32.rs":"2aac9ec0a67a97328ba908b13a1ff98da3dcd7781910d592d31f9207cbd9a7d2","src/api/cast/v512.rs":"33b33de818f8d4eccc982bc2f3951a8b3d03e9762ec02789b3df82e3f5ed3fc3","src/api/cast/v64.rs":"ec878917d52a8c952633251b3a938a2cbe0a63fee6d12c15840d9f1343d1f394","src/api/cmp.rs":"357c3a2a09c6d4611c32dd7fa95be2fae933d513e229026ec9b44451a77b884e","src/api/cmp/eq.rs":"60f70f355bae4cb5b17db53204cacc3890f70670611c17df638d4c04f7cc8075","src/api/cmp/ord.rs":"589f7234761c294fa5df8f525bc4acd5a47cdb602207d524a0d4e19804cd9695","src/api/cmp/partial_eq.rs":"3ed23d2a930b0f9750c3a5309da766b03dc4f9c4d375b42ad3c50fe732693d15","src/api/cmp/partial_ord.rs":"e16b11805c94048acd058c93994b5bc74bb187f8d7e3b86a87df60e1601467f9","src/api/cmp/vertical.rs":"de3d62f38eba817299aa16f1e1939954c9a447e316509397465c2830852ba053","src/api/default.rs":"67bf21c134127d12a7028c8b88a57f0ceee8ccbd74976da8ca74eb9f16a174d5","src/api/fmt.rs":"67fb804bb86b6cd77cf8cd492b5733ce437071b66fe3297278b8a6552c325dda","src/api/fmt/binary.rs":"35cb5c266197d6224d598fb3d286e5fe48ef0c01ed356c2ff6fe9ba946f96a92","src/api/fmt/debug.rs":"aa18eea443bf353fea3db8b1a025132bbcaf91e747ecfa43b8d9fce9af395a0c","src/api/fmt/lower_hex.rs":"69d5be366631af309f214e8031c8c20267fcc27a695eac6f45c6bc1df72a67e6","src/api/fmt/octal.rs":"9eb11ba3d990213f3c7f1ec25edba7ce997cb1320e16d308c83498ba6b9bfbd9","src/api/fmt/upper_hex.rs":"a4637d085b7bb20e759ce58e08435b510a563ba3dd468af2b03560fdc5511562","src/api/from.rs":"2e599d8329cb05eaf06224cc441355c4b7b51254fc19256619333be8c149d444","src/api/from/from_array.rs":"dd3fc64fb17d6184bb60343f8da26a05edf0e5f3c14caf55d49fa15e21d948dc","src/api/from/from_vector.rs":"9764371aa9e6005aace74dea14f59e5611a095b7cf42707940924749282c52f0","src/api/hash.rs":"5076ece87969592c876486f5b1ea8affbeaec379d1a14a30859e0aa5592019de","src/api/into_bits.rs":"82297f0697d67b5a015e904e7e6e7b2a7066ba825bc54b94b4ff3e22d7a1eefb","src/api/into_bits/arch_specific.rs":"4acab22af90112072a2608fafc66fccf18cbf2e641b72af28404d30833cfe5c6","src/api/into_bits/macros.rs":"d762406de25aedff88d460dec7a80dc8e825a2a419d53218ce007efa6a1d3e04","src/api/into_bits/v128.rs":"3c502b9ce85bfcc727d6f053d49030b0ba9f46bd8e9fa5aa109382a2033f9f87","src/api/into_bits/v16.rs":"f4f4f61ba88aa51b158ec56ca3dce234349aea0daf2b3029a14ab5125d1e41e5","src/api/into_bits/v256.rs":"c24c3676707a0feb868dabe00766d74deab176794f905f79056337198c7cf790","src/api/into_bits/v32.rs":"905ba683d342fa32f4202b80bb46530807bd0a5b588f6c2e8c9f475223c47775","src/api/into_bits/v512.rs":"7cd89005215a9326eed8a742125dcbf981cba1aca72a313478eabf3df71b1160","src/api/into_bits/v64.rs":"d6238022ccff7b92e55b3f6017fc269acb6f36330a6d7e8fb389853a0f1b6478","src/api/math.rs":"8b2a2fc651917a850539f993aa0b9e5bf4da67b11685285b8de8cdca311719ec","src/api/math/float.rs":"61d2794d68262a1090ae473bd30793b5f65cf732f32a6694a3af2ce5d9225616","src/api/math/float/abs.rs":"5b6b2701e2e11135b7ce58a05052ea8120e10e4702c95d046b9d21b827b26bf8","src/api/math/float/consts.rs":"78acba000d3fa527111300b6327c1932de9c4c1e02d4174e1a5615c01463d38c","src/api/math/float/cos.rs":"4c2dd7173728ef189314f1576c9486e03be21b7da98843b2f9011282a7979e31","src/api/math/float/exp.rs":"7c6d5f1e304f498a01cfa23b92380c815d7da0ad94eae3483783bc377d287eef","src/api/math/float/ln.rs":"54c7583f3df793b39ff57534fade27b41bb992439e5dc178252f5ca3190a3e54","src/api/math/float/mul_add.rs":"62cac77660d20159276d4c9ef066eb90c81cbddb808e8e157182c607625ad2eb","src/api/math/float/mul_adde.rs":"bae056ee9f3a70df39ec3c3b2f6437c65303888a7b843ef1a5bcf1f5aca0e602","src/api/math/float/powf.rs":"9ddb938984b36d39d82a82f862f80df8f7fb013f1d222d45698d41d88472f568","src/api/math/float/recpre.rs":"589225794ff1dbf31158dff660e6d4509ecc8befbb57c633900dea5ac0b840d6","src/api/math/float/rsqrte.rs":"a32abdcc318d7ccc8448231f54d75b884b7cbeb03a7d595713ab6243036f4dbf","src/api/math/float/sin.rs":"cbd3622b7df74f19691743001c8cf747a201f8977ad90542fee915f37dcd1e49","src/api/math/float/sqrt.rs":"0c66d5d63fb08e4d99c6b82a8828e41173aff1ac9fa1a2764a11fac217ccf2ac","src/api/math/float/sqrte.rs":"731e1c9f321b662accdd27dacb3aac2e8043b7aecb2f2161dde733bd9f025362","src/api/minimal.rs":"1f22bcc528555444e76de569ec0ae2029b9ae9d04805efeafa93369c8098036b","src/api/minimal/iuf.rs":"819cff26d3e196f807645bcc1d79eb27d9f175edb89910f2274d52a1e913cd11","src/api/minimal/mask.rs":"0cae10ae1fc65f5070e686c0c79bfba27b86b33d6c399367bd4848fb367dcec4","src/api/minimal/ptr.rs":"f65ebf21866a863485344432d9a7a9b7418f7fad5fdf841a4e2fa56ec0766ad0","src/api/ops.rs":"3e273b277a0f3019d42c3c59ca94a5afd4885d5ae6d2182e5089bbeec9de42ee","src/api/ops/scalar_arithmetic.rs":"d2d5ad897a59dd0787544f927e0e7ca4072c3e58b0f4a2324083312b0d5a21d7","src/api/ops/scalar_bitwise.rs":"482204e459ca6be79568e1c9f70adbe2d2151412ddf122fb2161be8ebb51c40c","src/api/ops/scalar_mask_bitwise.rs":"c250f52042e37b22d57256c80d4604104cfd2fbe2a2e127c676267270ca5d350","src/api/ops/scalar_shifts.rs":"987f8fdebeedc16e3d77c1b732e7826ef70633c541d16dfa290845d5c6289150","src/api/ops/vector_arithmetic.rs":"ddca15d09ddeef502c2ed66117a62300ca65d87e959e8b622d767bdf1c307910","src/api/ops/vector_bitwise.rs":"b3968f7005b649edcc22a54e2379b14d5ee19045f2e784029805781ae043b5ee","src/api/ops/vector_float_min_max.rs":"76bf8cb607e2c442923c1da1061a6b80d742d607408033c2a3761161114cf2a0","src/api/ops/vector_int_min_max.rs":"a378789c6ff9b32a51fbd0a97ffd36ed102cd1fe6a067d2b02017c1df342def6","src/api/ops/vector_mask_bitwise.rs":"5052d18517d765415d40327e6e8e55a312daaca0a5e2aec959bfa54b1675f9c8","src/api/ops/vector_neg.rs":"5c62f6b0221983cdbd23cd0a3af3672e6ba1255f0dfe8b19aae6fbd6503e231b","src/api/ops/vector_rotates.rs":"03cbe8a400fd7c688e4ee771a990a6754f2031b1a59b19ae81158b21471167e5","src/api/ops/vector_shifts.rs":"9bf69d0087268f61009e39aea52e03a90f378910206b6a28e8393178b6a5d0e0","src/api/ptr.rs":"8a793251bed6130dcfb2f1519ceaa18b751bbb15875928d0fb6deb5a5e07523a","src/api/ptr/gather_scatter.rs":"138b02b0fa1fdd785b95fc7048488be7e3ef277e0bc6ac5affb26af6a11d41a6","src/api/reductions.rs":"ae5baca81352ecd44526d6c30c0a1feeda475ec73ddd3c3ec6b14e944e5448ee","src/api/reductions/bitwise.rs":"8bf910ae226188bd15fc7e125f058cd2566b6186fcd0cd8fd020f352c39ce139","src/api/reductions/float_arithmetic.rs":"3997125f87c7bac07fffda3a1d814e0e6c77ca83099546a9e2fb8dc92231129f","src/api/reductions/integer_arithmetic.rs":"47471da1c5f859489680bb5d34ced3d3aa20081c16053a3af121a4496fcb57bf","src/api/reductions/mask.rs":"db83327a950e33a317f37fd33ca4e20c347fb415975ec024f3e23da8509425af","src/api/reductions/min_max.rs":"d40ccad10220ae5982785015bef92e4b0749583c2b060cad0aa4f92d99491c3b","src/api/select.rs":"a98e2ccf9fc6bdeed32d337c8675bc96c2fbe2cc34fbf149ad6047fb8e749774","src/api/shuffle.rs":"da58200790868c09659819322a489929a5b6e56c596ed07e6a44293ea02e7d09","src/api/shuffle1_dyn.rs":"bfea5a91905b31444e9ef7ca6eddb7a9606b7e22d3f71bb842eb2795a0346620","src/api/slice.rs":"ee87484e8af329547b9a5d4f2a69e8bed6ea10bbd96270d706083843d4eea2ac","src/api/slice/from_slice.rs":"53691dc9958dec4180004a42d140552b405e8cd875caa282e89af378dd63c8bc","src/api/slice/write_to_slice.rs":"3dd2e511af43dc6fa911dd0b12f6f00323e0acd1202a01365db400557d52a89b","src/api/swap_bytes.rs":"4a6792a2e49a77475e1b237592b4b2804dbddb79c474331acd0dd71b36934259","src/codegen.rs":"a29d38fa0a85eaf787fb49989e625bf64effd5f39c126fbb2a24be206d2a3917","src/codegen/bit_manip.rs":"17ecebcff1f080e712fea5eb51602a73f4201ed56a198220342c8eb55bb92692","src/codegen/llvm.rs":"b1f24237f61b7c5ddb8d47f3943aab79a95ce0e75af87ab2d1c88d842faffd39","src/codegen/math.rs":"35f96e37a78fcf0cdb02146b7f27a45108fe06a37fc2a54d8851ce131a326178","src/codegen/math/float.rs":"dd86c0449e576c83b719700962ac017c332987fac08d91f2b7a2b1b883598170","src/codegen/math/float/abs.rs":"f56e2b4b8055ea861c1f5cbc6b6e1d8e7e5af163b62c13574ddee4e09513bfbc","src/codegen/math/float/cos.rs":"ef3b511a24d23045b310315e80348a9b7fedb576fc2de52d74290616a0abeb2a","src/codegen/math/float/cos_pi.rs":"4e7631a5d73dac21531e09ef1802d1180f8997509c2c8fa9f67f322194263a97","src/codegen/math/float/exp.rs":"61b691598c41b5622f24e4320c1bdd08701e612a516438bdddcc728fc3405c8c","src/codegen/math/float/ln.rs":"46b718b1ba8c9d99e1ad40f53d20dfde08a3063ca7bd2a9fdd6698e060da687e","src/codegen/math/float/macros.rs":"dd42135fff13f9aca4fd3a1a4e14c7e6c31aadc6d817d63b0d2fb9e62e062744","src/codegen/math/float/mul_add.rs":"a37bf764345d4b1714f97e83897b7cf0855fc2811704bcbc0012db91825339e1","src/codegen/math/float/mul_adde.rs":"c75702bfcb361de45964a93caf959a695ef2376bd069227600b8c6872665c755","src/codegen/math/float/powf.rs":"642346e982bc4c39203de0864d2149c4179cd7b21cf67a2951687932b4675872","src/codegen/math/float/sin.rs":"9d68164c90cdca6a85155040cdac42e27342ebe0b925273ef1593df721af4258","src/codegen/math/float/sin_cos_pi.rs":"9be02ad48585a1e8d99129382fbffbaed47852f15459256a708850b6b7a75405","src/codegen/math/float/sin_pi.rs":"9890347905b4d4a3c7341c3eb06406e46e60582bcf6960688bd727e5dadc6c57","src/codegen/math/float/sqrt.rs":"e3c60dcfb0c6d2fc62adabcc931b2d4040b83cab294dea36443fb4b89eb79e34","src/codegen/math/float/sqrte.rs":"f0f4ef9eb475ae41bcc7ec6a95ad744ba6b36925faa8b2c2814004396d196b63","src/codegen/pointer_sized_int.rs":"a70697169c28218b56fd2e8d5353f2e00671d1150d0c8cef77d613bdfacd84cb","src/codegen/reductions.rs":"645e2514746d01387ddd07f0aa4ffd8430cc9ab428d4fb13773ea319fa25dd95","src/codegen/reductions/mask.rs":"8f1afe6aabf096a3278e1fc3a30f736e04aa8b9ce96373cee22162d18cfe2702","src/codegen/reductions/mask/aarch64.rs":"cba6e17603d39795dcfe8339b6b7d8714c3e162a1f0a635979f037aa24fe4206","src/codegen/reductions/mask/arm.rs":"9447904818aa2c7c25d0963eead452a639a11ca7dbd6d21eedbfcaade07a0f33","src/codegen/reductions/mask/fallback.rs":"7a0ef9f7fd03ae318b495b95e121350cd61caffc5cc6ee17fabf130d5d933453","src/codegen/reductions/mask/fallback_impl.rs":"76547f396e55ef403327c77c314cf8db8c7a5c9b9819bfb925abeacf130249e5","src/codegen/reductions/mask/x86.rs":"4c0457b6276f9809223590092a4c77e73812330326cdabd28df06820de10a310","src/codegen/reductions/mask/x86/avx.rs":"b4913d87844c522903641cbbf10db4551addb1ce5e9e78278e21612fa65c733b","src/codegen/reductions/mask/x86/avx2.rs":"677aed3f056285285daa3adff8bc65e739630b4424defa6d9665e160f027507e","src/codegen/reductions/mask/x86/sse.rs":"5a827c6f8e1074e324f6e4c778942badb6c09d747a7142de01cadec1240b3428","src/codegen/reductions/mask/x86/sse2.rs":"bc38e6c31cb4b3d62147eba6cac264e519e2a48e0f7ce9010cfa9ef0cf0ec9fd","src/codegen/shuffle.rs":"99a0b52c2470097b028af134221099baba383446a01c7dc3ae560209880bcdb7","src/codegen/shuffle1_dyn.rs":"abbc95305dad815ab2ded3e8357791bcff080414668b55a4d397558a1d202d01","src/codegen/swap_bytes.rs":"1d6cdc716eadddc92b4fd506b2445a821caa8dc00860447de09d7ebd69c2087f","src/codegen/v128.rs":"94226b31ec403d18d9d2fe06713f147c9c79e9b5f9105089088266313f843185","src/codegen/v16.rs":"ddec4ffb66b6f7aaffb9a1780c5ddba82557abd74f45073d335047e04cf74924","src/codegen/v256.rs":"6b63917f0444118d6b1595bff2045e59b97c4d24012bd575f69f1f0efc5a0241","src/codegen/v32.rs":"3477b3c5540aed86e61e2f5807dd31db947413cec9181c587d93ed6ec74f0eba","src/codegen/v512.rs":"5854f99d3aabc4cd42b28a20d9ce447756dc2ba024a409a69b6a8ae1f1842fc5","src/codegen/v64.rs":"e9e89caebfe63d10c0cbca61e4dfdba3b7e02ee0989170f80beed23237ddd950","src/codegen/vPtr.rs":"711c753a08d53a2879c4fb87a0762c46ce4e34c22f0ca88d2e4c557a0f679969","src/codegen/vSize.rs":"eeee9858749aa82142b27bc120d1989bb74a6b82e1e4efbbeaccc9634dc9acfc","src/lib.rs":"b842b5e47008b9bd59af4d2e309b84204d90a53d36595684082adc46b6934987","src/masks.rs":"be05e923ac58fe6eb61311561b5583cd306574f206dc09fe8e3c7de3dd0c1433","src/sealed.rs":"ae7fdeaf5d84cd7710ed730ca72ca7eaba93df6cb0acb183e5c0a7327acf197f","src/testing.rs":"1d3a7862ef625e235a5734ad7204e68d350f902c0695182b1f08a0552432416e","src/testing/macros.rs":"6378856d7a40ba5ec5c7c0dad6327d79f0c77266921c24296d10aed6c68e9b98","src/testing/utils.rs":"5ec6a47b836f364ec6dede19750a19eaac704162327d03041eb0f007d5f8d75c","src/v128.rs":"16cf9a8e7156b899ee9b9cd3f2dba9d13ec63289bea8c3ee9ae2e43ad9510288","src/v16.rs":"cb6465cf1e00bf530183af1819b9fe3d7eec978f8765d5e85d9b58a39a4b4045","src/v256.rs":"fe235017da18c7f3c361831c60e3173ad304d8ea1e95d64ebebc79da2d708511","src/v32.rs":"145d347855bac59b2de6508f9e594654e6c330423af9edc0e2ac8f4d1abdf45e","src/v512.rs":"f372f277f3e62eb5c945bb1c460333fdb17b6974fcc876633788ff53bded9599","src/v64.rs":"0b8079881b71575e3414be0b7f8f7eaba65281ba6732f2b2f61f73e95b6f48f7","src/vPtr.rs":"8b3e433d487180bb4304ff71245ecad90f0010f43e139a72027b672abe58facc","src/vSize.rs":"eda5aa020706cbf94d15bada41a0c2a35fc8f3f37cb7c2cd6f34d201399a495e","tests/endianness.rs":"7db22078f31fe1421fc2d21f2e6b9df5eb0bdc99c10f6985d3a74c0df8f205dc"},"package":null}
  76. \ No newline at end of file
  77. diff --git a/third_party/rust/packed_simd/.travis.yml b/third_party/rust/packed_simd/.travis.yml
  78. --- a/third_party/rust/packed_simd/.travis.yml
  79. +++ b/third_party/rust/packed_simd/.travis.yml
  80. @@ -1,291 +1,222 @@
  81. language: rust
  82. -sudo: false
  83. rust: nightly
  84. +os: linux
  85. +dist: focal
  86. stages:
  87. - tools
  88. - - linux-tier1
  89. - - osx-tier1
  90. - - osx-tier2
  91. - - linux-tier2
  92. - - android
  93. + - build-test-verify # Passes full test suite, permit no regressions (unless it's rustup :/)
  94. + - 32bit-tier1
  95. + - 64bit-tier2
  96. + - 32bit-tier2
  97. -matrix:
  98. - fast_finish: true
  99. +jobs:
  100. + fast_finish: true
  101. include:
  102. # Android:
  103. - - env: TARGET=x86_64-linux-android NOVERIFY=1
  104. + - env: TARGET=x86_64-linux-android
  105. name: "x86_64-unknown-linux-android + SSE2"
  106. - stage: android
  107. + stage: build-test-verify
  108. - env: TARGET=arm-linux-androideabi
  109. name: "arm-linux-androideabi"
  110. - stage: android
  111. + stage: build-test-verify
  112. - env: TARGET=arm-linux-androideabi RUSTFLAGS="-C target-feature=+v7,+neon"
  113. name: "arm-linux-androideabi + NEON"
  114. - stage: android
  115. - - env: TARGET=aarch64-linux-android
  116. - name: "aarch64-unknown-linux-android"
  117. - stage: android
  118. - - env: TARGET=aarch64-linux-android RUSTFLAGS="-C target-feature=+neon"
  119. - name: "aarch64-unknown-linux-android + NEON"
  120. - stage: android
  121. + stage: build-test-verify
  122. + - name: "aarch64-unknown-linux-android + NEON"
  123. + env: TARGET=aarch64-linux-android RUSTFLAGS="-C target-feature=+neon"
  124. + stage: build-test-verify
  125. - env: TARGET="thumbv7neon-linux-androideabi"
  126. name: "thumbv7neon-linux-androideabi"
  127. - stage: android
  128. + stage: 32bit-tier2
  129. # Linux:
  130. - env: TARGET=i586-unknown-linux-gnu
  131. name: "i586-unknown-linux-gnu"
  132. - stage: linux-tier2
  133. + stage: 32bit-tier2
  134. - env: TARGET=i586-unknown-linux-gnu RUSTFLAGS="-C target-feature=+sse"
  135. name: "i586-unknown-linux-gnu + SSE"
  136. - stage: linux-tier2
  137. + stage: 32bit-tier2
  138. - env: TARGET=i586-unknown-linux-gnu RUSTFLAGS="-C target-feature=+sse2"
  139. name: "i586-unknown-linux-gnu + SSE2"
  140. - stage: linux-tier2
  141. + stage: 32bit-tier2
  142. - env: TARGET=i686-unknown-linux-gnu
  143. name: "i686-unknown-linux-gnu + SSE2"
  144. - stage: linux-tier1
  145. + stage: 32bit-tier1
  146. - env: TARGET=i686-unknown-linux-gnu RUSTFLAGS="-C target-feature=+sse4.2"
  147. name: "i686-unknown-linux-gnu + SSE4.2"
  148. - stage: linux-tier1
  149. + stage: 32bit-tier1
  150. - env: TARGET=i686-unknown-linux-gnu RUSTFLAGS="-C target-feature=+avx2"
  151. name: "i686-unknown-linux-gnu + AVX2"
  152. - stage: linux-tier1
  153. - - env: TARGET=x86_64-unknown-linux-gnu
  154. - name: "x86_64-unknown-linux-gnu + SSE2"
  155. - install: rustup component add rustfmt-preview
  156. - stage: linux-tier1
  157. + stage: 32bit-tier1
  158. - env: TARGET=x86_64-unknown-linux-gnu RUSTFLAGS="-C target-feature=+sse4.2"
  159. name: "x86_64-unknown-linux-gnu + SSE4.2"
  160. install: rustup component add rustfmt-preview
  161. - stage: linux-tier1
  162. - - env: TARGET=x86_64-unknown-linux-gnu RUSTFLAGS="-C target-feature=+avx"
  163. - name: "x86_64-unknown-linux-gnu + AVX"
  164. - install: rustup component add rustfmt-preview
  165. - stage: linux-tier1
  166. + stage: build-test-verify
  167. - env: TARGET=x86_64-unknown-linux-gnu RUSTFLAGS="-C target-feature=+avx2"
  168. name: "x86_64-unknown-linux-gnu + AVX2"
  169. install: rustup component add rustfmt-preview
  170. - stage: linux-tier1
  171. - - env: TARGET=x86_64-unknown-linux-gnu-emulated
  172. - name: "Intel SDE + SSE2"
  173. - install: true
  174. - stage: linux-tier1
  175. - - env: TARGET=x86_64-unknown-linux-gnu-emulated RUSTFLAGS="-C target-feature=+sse4.2"
  176. - name: "Intel SDE + SSE4.2"
  177. - install: true
  178. - stage: linux-tier1
  179. - - env: TARGET=x86_64-unknown-linux-gnu-emulated RUSTFLAGS="-C target-feature=+avx"
  180. - name: "Intel SDE + AVX"
  181. - install: true
  182. - stage: linux-tier1
  183. - - env: TARGET=x86_64-unknown-linux-gnu-emulated RUSTFLAGS="-C target-feature=+avx2"
  184. - name: "Intel SDE + AVX2"
  185. - install: true
  186. - stage: linux-tier1
  187. - - env: TARGET=x86_64-unknown-linux-gnu-emulated RUSTFLAGS="-C target-feature=+avx-512f"
  188. - name: "Intel SDE + AVX-512"
  189. - install: true
  190. - stage: linux-tier1
  191. - - env: TARGET=arm-unknown-linux-gnueabi
  192. - name: "arm-unknown-linux-gnueabi"
  193. - stage: linux-tier2
  194. + stage: build-test-verify
  195. - env: TARGET=arm-unknown-linux-gnueabi RUSTFLAGS="-C target-feature=+v7,+neon"
  196. name: "arm-unknown-linux-gnueabi + NEON"
  197. - stage: linux-tier2
  198. + stage: build-test-verify
  199. - env: TARGET=arm-unknown-linux-gnueabihf
  200. name: "arm-unknown-linux-gnueabihf"
  201. - stage: linux-tier2
  202. + stage: build-test-verify
  203. - env: TARGET=arm-unknown-linux-gnueabihf RUSTFLAGS="-C target-feature=+v7,+neon"
  204. name: "arm-unknown-linux-gnueabihf + NEON"
  205. - stage: linux-tier2
  206. + stage: build-test-verify
  207. - env: TARGET=armv7-unknown-linux-gnueabihf
  208. name: "armv7-unknown-linux-gnueabihf"
  209. - stage: linux-tier2
  210. + stage: build-test-verify
  211. - env: TARGET=armv7-unknown-linux-gnueabihf RUSTFLAGS="-C target-feature=+neon"
  212. name: "armv7-unknown-linux-gnueabihf + NEON"
  213. - stage: linux-tier2
  214. + stage: build-test-verify
  215. - env: TARGET="thumbv7neon-unknown-linux-gnueabihf"
  216. name: "thumbv7neon-unknown-linux-gnueabihf"
  217. - stage: linux-tier2
  218. - - env: TARGET=aarch64-unknown-linux-gnu
  219. - name: "aarch64-unknown-linux-gnu"
  220. - stage: linux-tier2
  221. - - env: TARGET=aarch64-unknown-linux-gnu RUSTFLAGS="-C target-feature=+neon"
  222. - name: "aarch64-unknown-linux-gnu + NEON"
  223. - stage: linux-tier2
  224. + stage: 32bit-tier2
  225. + - name: "aarch64-unknown-linux-gnu + NEON"
  226. + env: TARGET=aarch64-unknown-linux-gnu RUSTFLAGS="-C target-feature=+neon"
  227. + stage: build-test-verify
  228. - env: TARGET=mips-unknown-linux-gnu
  229. name: "mips-unknown-linux-gnu"
  230. - stage: linux-tier2
  231. + stage: 32bit-tier2
  232. - env: TARGET=mipsel-unknown-linux-musl
  233. name: "mipsel-unknown-linux-musl"
  234. - stage: linux-tier2
  235. + stage: 32bit-tier2
  236. - env: TARGET=mips64-unknown-linux-gnuabi64
  237. name: "mips64-unknown-linux-gnuabi64"
  238. - stage: linux-tier2
  239. + stage: 64bit-tier2
  240. - env: TARGET=mips64el-unknown-linux-gnuabi64
  241. name: "mips64el-unknown-linux-gnuabi64"
  242. - stage: linux-tier2
  243. + stage: 64bit-tier2
  244. # FIXME: https://github.com/rust-lang-nursery/packed_simd/issues/18
  245. # env: TARGET=mips64el-unknown-linux-gnuabi64 RUSTFLAGS="-C target-feature=+msa -C target-cpu=mips64r6"
  246. - env: TARGET=powerpc-unknown-linux-gnu
  247. name: "powerpc-unknown-linux-gnu"
  248. - stage: linux-tier2
  249. + stage: 32bit-tier2
  250. - env: TARGET=powerpc64-unknown-linux-gnu
  251. name: "powerpc64-unknown-linux-gnu"
  252. - stage: linux-tier2
  253. - - env: TARGET=powerpc64le-unknown-linux-gnu
  254. - name: "powerpc64le-unknown-linux-gnu"
  255. - stage: linux-tier2
  256. - - env: TARGET=powerpc64le-unknown-linux-gnu RUSTFLAGS="-C target-feature=+altivec"
  257. - name: "powerpc64le-unknown-linux-gnu + ALTIVEC"
  258. - stage: linux-tier2
  259. - - env: TARGET=powerpc64le-unknown-linux-gnu RUSTFLAGS="-C target-feature=+vsx"
  260. - name: "powerpc64le-unknown-linux-gnu + VSX"
  261. - stage: linux-tier2
  262. - - env: TARGET=s390x-unknown-linux-gnu
  263. - name: "s390x-unknown-linux-gnu"
  264. - stage: linux-tier2
  265. + stage: 64bit-tier2
  266. + - name: "powerpc64le-unknown-linux-gnu"
  267. + env: TARGET=powerpc64le-unknown-linux-gnu
  268. + stage: build-test-verify
  269. + - name: "powerpc64le-unknown-linux-gnu + ALTIVEC"
  270. + env: TARGET=powerpc64le-unknown-linux-gnu RUSTFLAGS="-C target-feature=+altivec"
  271. + stage: build-test-verify
  272. + - name: "powerpc64le-unknown-linux-gnu + VSX"
  273. + env: TARGET=powerpc64le-unknown-linux-gnu RUSTFLAGS="-C target-feature=+vsx"
  274. + stage: build-test-verify
  275. + - name: "s390x-unknown-linux-gnu"
  276. + env: TARGET=s390x-unknown-linux-gnu
  277. + stage: 64bit-tier2
  278. - env: TARGET=sparc64-unknown-linux-gnu
  279. name: "sparc64-unknown-linux-gnu"
  280. - stage: linux-tier2
  281. + stage: 64bit-tier2
  282. # WebAssembly:
  283. - env: TARGET=wasm32-unknown-unknown
  284. name: "wasm32-unknown-unknown"
  285. - stage: osx-tier1 # For now
  286. + stage: 32bit-tier2
  287. # MacOSX:
  288. - os: osx
  289. - env: TARGET=i686-apple-darwin
  290. - name: "i686-apple-darwin + SSE2"
  291. - script: ci/run.sh
  292. - osx_image: xcode10
  293. - stage: osx-tier1
  294. - - os: osx
  295. - env: TARGET=i686-apple-darwin RUSTFLAGS="-C target-feature=+sse4.2"
  296. - name: "i686-apple-darwin + SSE4.2"
  297. - script: ci/run.sh
  298. - osx_image: xcode10
  299. - stage: osx-tier1
  300. - # Travis-CI OSX build bots do not support AVX2:
  301. - - os: osx
  302. - env: TARGET=i686-apple-darwin RUSTFLAGS="-C target-feature=+avx"
  303. - name: "i686-apple-darwin + AVX"
  304. - script: ci/run.sh
  305. - osx_image: xcode10
  306. - stage: osx-tier1
  307. - - os: osx
  308. - env: TARGET=x86_64-apple-darwin
  309. - name: "x86_64-apple-darwin + SSE2"
  310. - install: true
  311. - script: ci/run.sh
  312. - osx_image: xcode10
  313. - stage: osx-tier1
  314. - - os: osx
  315. env: TARGET=x86_64-apple-darwin RUSTFLAGS="-C target-feature=+sse4.2"
  316. name: "x86_64-apple-darwin + SSE4.2"
  317. install: true
  318. script: ci/run.sh
  319. osx_image: xcode10
  320. - stage: osx-tier1
  321. + stage: build-test-verify
  322. # Travis-CI OSX build bots do not support AVX2:
  323. - os: osx
  324. env: TARGET=x86_64-apple-darwin RUSTFLAGS="-C target-feature=+avx"
  325. name: "x86_64-apple-darwin + AVX"
  326. install: true
  327. script: ci/run.sh
  328. osx_image: xcode10
  329. - stage: osx-tier1
  330. + stage: build-test-verify
  331. # *BSDs:
  332. #- env: TARGET=i686-unknown-freebsd NORUN=1
  333. # script: ci/run.sh
  334. #- env: TARGET=x86_64-unknown-freebsd NORUN=1
  335. # script: ci/run.sh
  336. #- env: TARGET=x86_64-unknown-netbsd NORUN=1
  337. # script: ci/run.sh
  338. # Solaris:
  339. #- env: TARGET=x86_64-sun-solaris NORUN=1
  340. # script: ci/run.sh
  341. # iOS:
  342. - os: osx
  343. - env: TARGET=i386-apple-ios
  344. - name: "i386-apple-ios"
  345. - script: ci/run.sh
  346. - osx_image: xcode9.4
  347. - stage: osx-tier2
  348. - - os: osx
  349. env: TARGET=x86_64-apple-ios
  350. name: "x86_64-apple-ios + SSE2"
  351. script: ci/run.sh
  352. osx_image: xcode9.4
  353. - stage: osx-tier2
  354. - - os: osx
  355. - env: TARGET=armv7-apple-ios NORUN=1
  356. - name: "armv7-apple-ios [Build only]"
  357. - script: ci/run.sh
  358. + stage: 64bit-tier2
  359. + - name: "aarch64-apple-ios + NEON"
  360. + env: TARGET=aarch64-apple-ios RUSTFLAGS="-C target-feature=+neon"
  361. + os: osx
  362. osx_image: xcode9.4
  363. - stage: osx-tier2
  364. - - os: osx
  365. - env: TARGET=aarch64-apple-ios NORUN=1
  366. - name: "aarch64-apple-ios [Build only]"
  367. script: ci/run.sh
  368. - osx_image: xcode9.4
  369. - stage: osx-tier2
  370. + stage: 64bit-tier2
  371. # BENCHMARKS:
  372. - name: "Benchmarks - x86_64-unknown-linux-gnu"
  373. install: TARGET=x86_64-unknown-linux-gnu ./ci/setup_benchmarks.sh
  374. - script: PATH=$(pwd):$PATH NORUN=1 VERIFY=1 FEATURES=core_arch,ispc,sleef-sys ci/benchmark.sh
  375. + # FIXME: Use `core_arch,sleef-sys` features once they works again
  376. + script: PATH=$(pwd):$PATH NORUN=1 VERIFY=1 FEATURES=ispc ci/benchmark.sh
  377. stage: tools
  378. - name: "Benchmarks - x86_64-apple-darwin"
  379. install: TARGET=x86_64-apple-darwin ./ci/setup_benchmarks.sh
  380. - script: PATH=$(pwd):$PATH NORUN=1 VERIFY=1 FEATURES=core_arch,ispc,sleef-sys ci/benchmark.sh
  381. + # FIXME: Use `core_arch,sleef-sys` features once they works again
  382. + script: PATH=$(pwd):$PATH NORUN=1 VERIFY=1 FEATURES=ispc ci/benchmark.sh
  383. os: osx
  384. osx_image: xcode9.4
  385. stage: tools
  386. # TOOLS:
  387. - name: "Documentation"
  388. - install: cargo install mdbook
  389. + before_install:
  390. + - sudo add-apt-repository -y ppa:deadsnakes/ppa
  391. + - sudo apt-get update -y
  392. + - sudo apt-get install -y python3.9
  393. + install:
  394. + - cargo install mdbook
  395. script: ci/dox.sh
  396. stage: tools
  397. - name: "rustfmt"
  398. install: true
  399. - before_script: rustup component add rustfmt-preview
  400. - script: ci/all.sh check_fmt || true
  401. + script: |
  402. + if rustup component add rustfmt-preview ; then
  403. + ci/all.sh check_fmt || true
  404. + fi
  405. stage: tools
  406. - name: "clippy"
  407. install: true
  408. - before_script: rustup component add clippy-preview
  409. - script: ci/all.sh clippy
  410. + script: |
  411. + if rustup component add clippy-preview ; then
  412. + ci/all.sh clippy
  413. + fi
  414. stage: tools
  415. allow_failures:
  416. # FIXME: ISPC cannot be found?
  417. - name: "Benchmarks - x86_64-apple-darwin"
  418. - # FIXME: TBD
  419. - - env: TARGET=powerpc-unknown-linux-gnu
  420. - - env: TARGET=powerpc64-unknown-linux-gnu
  421. - - env: TARGET=powerpc64le-unknown-linux-gnu
  422. - - env: TARGET=powerpc64le-unknown-linux-gnu RUSTFLAGS="-C target-feature=+altivec"
  423. - - env: TARGET=powerpc64le-unknown-linux-gnu RUSTFLAGS="-C target-feature=+vsx"
  424. + # FIXME: i686 fails in inlining, apparently
  425. + - stage: 32bit-tier1
  426. #- env: TARGET=i686-unknown-freebsd NORUN=1
  427. #- env: TARGET=x86_64-unknown-freebsd NORUN=1
  428. #- env: TARGET=x86_64-unknown-netbsd NORUN=1
  429. #- env: TARGET=x86_64-sun-solaris NORUN=1
  430. # FIXME: TBD
  431. - - env: TARGET=arm-linux-androideabi
  432. - - env: TARGET=arm-linux-androideabi RUSTFLAGS="-C target-feature=+v7,+neon"
  433. - - env: TARGET=aarch64-linux-android
  434. - - env: TARGET=aarch64-linux-android RUSTFLAGS="-C target-feature=+neon"
  435. + - stage: 64bit-tier2
  436. + - stage: 32bit-tier2
  437. # FIXME: iOS
  438. # https://github.com/rust-lang-nursery/packed_simd/issues/26
  439. - - env: TARGET=i386-apple-ios
  440. - env: TARGET=x86_64-apple-ios
  441. + # Is this related to the above? Mysterious test failure
  442. + - name: "aarch64-apple-ios + NEON"
  443. # FIXME: https://github.com/rust-lang-nursery/packed_simd/issues/182
  444. - env: TARGET=arm-unknown-linux-gnueabi RUSTFLAGS="-C target-feature=+v7,+neon"
  445. - env: TARGET=arm-unknown-linux-gnueabihf RUSTFLAGS="-C target-feature=+v7,+neon"
  446. - env: TARGET=armv7-unknown-linux-gnueabihf RUSTFLAGS="-C target-feature=+neon"
  447. # FIXME: https://github.com/rust-lang-nursery/packed_simd/issues/183
  448. - env: TARGET=wasm32-unknown-unknown
  449. diff --git a/third_party/rust/packed_simd/Cargo.toml b/third_party/rust/packed_simd/Cargo.toml
  450. --- a/third_party/rust/packed_simd/Cargo.toml
  451. +++ b/third_party/rust/packed_simd/Cargo.toml
  452. @@ -1,11 +1,11 @@
  453. [package]
  454. name = "packed_simd"
  455. -version = "0.3.3"
  456. +version = "0.3.4"
  457. authors = ["Gonzalo Brito Gadeschi <gonzalobg88@gmail.com>"]
  458. description = "Portable Packed SIMD vectors"
  459. documentation = "https://docs.rs/crate/packed_simd/"
  460. homepage = "https://github.com/rust-lang-nursery/packed_simd"
  461. repository = "https://github.com/rust-lang-nursery/packed_simd"
  462. keywords = ["simd", "vector", "portability"]
  463. categories = ["hardware-support", "concurrency", "no-std", "data-structures"]
  464. license = "MIT/Apache-2.0"
  465. @@ -16,27 +16,27 @@ edition = "2018"
  466. appveyor = { repository = "rust-lang-nursery/packed_simd" }
  467. travis-ci = { repository = "rust-lang-nursery/packed_simd" }
  468. codecov = { repository = "rust-lang-nursery/packed_simd" }
  469. is-it-maintained-issue-resolution = { repository = "rust-lang-nursery/packed_simd" }
  470. is-it-maintained-open-issues = { repository = "rust-lang-nursery/packed_simd" }
  471. maintenance = { status = "experimental" }
  472. [dependencies]
  473. -cfg-if = "^0.1.6"
  474. -core_arch = { version = "^0.1.3", optional = true }
  475. +cfg-if = "0.1.10"
  476. +core_arch = { version = "0.1.5", optional = true }
  477. [features]
  478. default = []
  479. into_bits = []
  480. libcore_neon = []
  481. [dev-dependencies]
  482. paste = "^0.1.3"
  483. -arrayvec = { version = "^0.4", default-features = false }
  484. +arrayvec = { version = "^0.5", default-features = false }
  485. [target.'cfg(target_arch = "x86_64")'.dependencies.sleef-sys]
  486. -version = "^0.1.2"
  487. +version = "0.1.2"
  488. optional = true
  489. [target.wasm32-unknown-unknown.dev-dependencies]
  490. -wasm-bindgen = "=0.2.19"
  491. -wasm-bindgen-test = "=0.2.19"
  492. \ No newline at end of file
  493. +wasm-bindgen = "=0.2.52"
  494. +wasm-bindgen-test = "=0.3.2"
  495. diff --git a/third_party/rust/packed_simd/readme.md b/third_party/rust/packed_simd/README.md
  496. rename from third_party/rust/packed_simd/readme.md
  497. rename to third_party/rust/packed_simd/README.md
  498. --- a/third_party/rust/packed_simd/readme.md
  499. +++ b/third_party/rust/packed_simd/README.md
  500. @@ -1,24 +1,22 @@
  501. # `Simd<[T; N]>`
  502. ## Implementation of [Rust RFC #2366: `std::simd`][rfc2366]
  503. [![Travis-CI Status]][travis] [![Appveyor Status]][appveyor] [![Latest Version]][crates.io] [![docs]][master_docs]
  504. -> This aims to be a 100% conforming implementation of Rust RFC 2366 for stabilization.
  505. -
  506. -**WARNING**: this crate only supports the most recent nightly Rust toolchain.
  507. +**WARNING**: this crate only supports the most recent nightly Rust toolchain
  508. +and will be superceded by [stdsimd](https://github.com/rust-lang/stdsimd).
  509. ## Documentation
  510. * [API docs (`master` branch)][master_docs]
  511. * [Performance guide][perf_guide]
  512. -* [API docs (`docs.rs`)][docs.rs]: **CURRENTLY DOWN** due to
  513. - https://github.com/rust-lang-nursery/packed_simd/issues/110
  514. +* [API docs (`docs.rs`)][docs.rs]
  515. * [RFC2366 `std::simd`][rfc2366]: - contains motivation, design rationale,
  516. discussion, etc.
  517. ## Examples
  518. Most of the examples come with both a scalar and a vectorized implementation.
  519. * [`aobench`](https://github.com/rust-lang-nursery/packed_simd/tree/master/examples/aobench)
  520. @@ -34,27 +32,16 @@ Most of the examples come with both a sc
  521. ## Cargo features
  522. * `into_bits` (default: disabled): enables `FromBits`/`IntoBits` trait
  523. implementations for the vector types. These allow reinterpreting the bits of a
  524. vector type as those of another vector type safely by just using the
  525. `.into_bits()` method.
  526. -* `core_arch` (default: disabled): enable this feature to recompile `core::arch`
  527. - for the target-features enabled. `packed_simd` includes optimizations for some
  528. - target feature combinations that are enabled by this feature. Note, however,
  529. - that this is an unstable dependency, that rustc might break at any time.
  530. -
  531. -* `sleef-sys` (default: disabled - `x86_64` only): internally uses the [SLEEF]
  532. - short-vector math library when profitable via the [`sleef-sys`][sleef_sys]
  533. - crate. [SLEEF] is licensed under the [Boost Software License
  534. - v1.0][boost_license], an extremely permissive license, and can be statically
  535. - linked without issues.
  536. -
  537. ## Performance
  538. The following [ISPC] examples are also part of `packed_simd`'s
  539. [`examples/`](https://github.com/rust-lang-nursery/packed_simd/tree/master/examples/)
  540. directory, where `packed_simd`+[`rayon`][rayon] are used to emulate [ISPC]'s
  541. Single-Program-Multiple-Data (SPMD) programming model. The performance results
  542. on different hardware is shown in the `readme.md` of each example. The following
  543. table summarizes the performance ranges, where `+` means speed-up and `-`
  544. @@ -70,70 +57,50 @@ slowdown:
  545. While SPMD is not the intended use case for `packed_simd`, it is possible to
  546. combine the library with [`rayon`][rayon] to poorly emulate [ISPC]'s SPMD programming
  547. model in Rust. Writing performant code is not as straightforward as with
  548. [ISPC], but with some care (e.g. see the [Performance Guide][perf_guide]) one
  549. can easily match and often out-perform [ISPC]'s "default performance".
  550. ## Platform support
  551. -The following table describes the supported platforms: `build` shows whether the
  552. -library compiles without issues for a given target, while `run` shows whether
  553. -the full testsuite passes on the target.
  554. +The following table describes the supported platforms: `build` shows whether
  555. +the library compiles without issues for a given target, while `run` shows
  556. +whether the test suite passes for a given target.
  557. -| Linux targets: | build | run |
  558. -|-----------------------------------|-----------|---------|
  559. -| `i586-unknown-linux-gnu` | ✓ | ✓ |
  560. -| `i686-unknown-linux-gnu` | ✓ | ✓ |
  561. -| `x86_64-unknown-linux-gnu` | ✓ | ✓ |
  562. -| `arm-unknown-linux-gnueabi` | ✗ | ✗ |
  563. -| `arm-unknown-linux-gnueabihf` | ✓ | ✓ |
  564. -| `armv7-unknown-linux-gnueabi` | ✓ | ✓ |
  565. -| `aarch64-unknown-linux-gnu` | ✓ | ✓ |
  566. -| `mips-unknown-linux-gnu` | ✓ | ✓ |
  567. -| `mipsel-unknown-linux-musl` | ✓ | ✓ |
  568. -| `mips64-unknown-linux-gnuabi64` | ✓ | ✓ |
  569. -| `mips64el-unknown-linux-gnuabi64` | ✓ | ✓ |
  570. -| `powerpc-unknown-linux-gnu` | ✗ | ✗ |
  571. -| `powerpc64-unknown-linux-gnu` | ✗ | ✗ |
  572. -| `powerpc64le-unknown-linux-gnu` | ✗ | ✗ |
  573. -| `s390x-unknown-linux-gnu` | ✓ | ✓* |
  574. -| `sparc64-unknown-linux-gnu` | ✓ | ✓* |
  575. -| `thumbv7neon-unknown-linux-gnueabihf` | ✓ | ✓ |
  576. -| **MacOSX targets:** | **build** | **run** |
  577. -| `x86_64-apple-darwin` | ✓ | ✓ |
  578. -| `i686-apple-darwin` | ✓ | ✓ |
  579. -| **Windows targets:** | **build** | **run** |
  580. -| `x86_64-pc-windows-msvc` | ✓ | ✓ |
  581. -| `i686-pc-windows-msvc` | ✓ | ✓ |
  582. -| `x86_64-pc-windows-gnu` | ✗ | ✗ |
  583. -| `i686-pc-windows-gnu` | ✗ | ✗ |
  584. -| **WebAssembly targets:** | **build** | **run** |
  585. -| `wasm32-unknown-unknown` | ✓ | ✓ |
  586. -| **Android targets:** | **build** | **run** |
  587. -| `x86_64-linux-android` | ✓ | ✓ |
  588. -| `arm-linux-androideabi` | ✓ | ✓ |
  589. -| `aarch64-linux-android` | ✓ | ✗ |
  590. -| `thumbv7neon-linux-androideabi` | ✓ | ✓ |
  591. -| **iOS targets:** | **build** | **run** |
  592. -| `i386-apple-ios` | ✓ | ✗ |
  593. -| `x86_64-apple-ios` | ✓ | ✗ |
  594. -| `armv7-apple-ios` | ✓ | ✗** |
  595. -| `aarch64-apple-ios` | ✓ | ✗** |
  596. -| **xBSD targets:** | **build** | **run** |
  597. -| `i686-unknown-freebsd` | ✗ | ✗** |
  598. -| `x86_64-unknown-freebsd` | ✗ | ✗** |
  599. -| `x86_64-unknown-netbsd` | ✗ | ✗** |
  600. -| **Solaris targets:** | **build** | **run** |
  601. -| `x86_64-sun-solaris` | ✗ | ✗** |
  602. +| **Linux** | **build** | **run** |
  603. +|---------------------------------------|-----------|---------|
  604. +| `i586-unknown-linux-gnu` | ✓ | ✗ |
  605. +| `i686-unknown-linux-gnu` | ✓ | ✗ |
  606. +| `x86_64-unknown-linux-gnu` | ✓ | ✓ |
  607. +| `arm-unknown-linux-gnueabi` | ✗ | ✗ |
  608. +| `arm-unknown-linux-gnueabihf` | ✓ | ✓ |
  609. +| `armv7-unknown-linux-gnueabi` | ✓ | ✓ |
  610. +| `aarch64-unknown-linux-gnu` | ✓ | ✓ |
  611. +| `mips-unknown-linux-gnu` | ✓ | ✗ |
  612. +| `mipsel-unknown-linux-musl` | ✓ | ✗ |
  613. +| `mips64-unknown-linux-gnuabi64` | ✓ | ✗ |
  614. +| `mips64el-unknown-linux-gnuabi64` | ✓ | ✗ |
  615. +| `powerpc-unknown-linux-gnu` | ✗ | ✗ |
  616. +| `powerpc64-unknown-linux-gnu` | ✗ | ✗ |
  617. +| `powerpc64le-unknown-linux-gnu` | ✓ | ✓ |
  618. +| `s390x-unknown-linux-gnu` | ✗ | ✗ |
  619. +| `sparc64-unknown-linux-gnu` | ✓ | ✗ |
  620. +| `thumbv7neon-unknown-linux-gnueabihf` | ✓ | ✓ |
  621. +| **MacOSX** | **build** | **run** |
  622. +| `x86_64-apple-darwin` | ✓ | ✓ |
  623. +| **Android** | **build** | **run** |
  624. +| `x86_64-linux-android` | ✓ | ✓ |
  625. +| `arm-linux-androideabi` | ✓ | ✓ |
  626. +| `aarch64-linux-android` | ✓ | ✓ |
  627. +| `thumbv7neon-linux-androideabi` | ✗ | ✗ |
  628. +| **iOS** | **build** | **run** |
  629. +| `x86_64-apple-ios` | ✓ | ✗ |
  630. +| `aarch64-apple-ios` | ✓ | ✗ |
  631. -[*] most of the test suite passes correctly on these platform but
  632. -there are correctness bugs open in the issue tracker.
  633. -
  634. -[**] it is currently not easily possible to run these platforms on CI.
  635. ## Machine code verification
  636. The
  637. [`verify/`](https://github.com/rust-lang-nursery/packed_simd/tree/master/verify)
  638. crate tests disassembles the portable packed vector APIs at run-time and
  639. compares the generated machine code against the desired one to make sure that
  640. this crate remains efficient.
  641. @@ -157,18 +124,18 @@ Please see the [contributing instruction
  642. Contributions in any form (issues, pull requests, etc.) to this project
  643. must adhere to Rust's [Code of Conduct].
  644. Unless you explicitly state otherwise, any contribution intentionally submitted
  645. for inclusion in `packed_simd` by you, as defined in the Apache-2.0 license, shall be
  646. dual licensed as above, without any additional terms or conditions.
  647. -[travis]: https://travis-ci.org/rust-lang-nursery/packed_simd
  648. -[Travis-CI Status]: https://travis-ci.org/rust-lang-nursery/packed_simd.svg?branch=master
  649. +[travis]: https://travis-ci.com/rust-lang-nursery/packed_simd
  650. +[Travis-CI Status]: https://travis-ci.com/rust-lang-nursery/packed_simd.svg?branch=master
  651. [appveyor]: https://ci.appveyor.com/project/gnzlbg/packed-simd
  652. [Appveyor Status]: https://ci.appveyor.com/api/projects/status/hd7v9dvr442hgdix?svg=true
  653. [Latest Version]: https://img.shields.io/crates/v/packed_simd.svg
  654. [crates.io]: https://crates.io/crates/packed_simd
  655. [docs]: https://docs.rs/packed_simd/badge.svg
  656. [docs.rs]: https://docs.rs/packed_simd/
  657. [master_docs]: https://rust-lang-nursery.github.io/packed_simd/packed_simd/
  658. [perf_guide]: https://rust-lang-nursery.github.io/packed_simd/perf-guide/
  659. diff --git a/third_party/rust/packed_simd/build.rs b/third_party/rust/packed_simd/build.rs
  660. --- a/third_party/rust/packed_simd/build.rs
  661. +++ b/third_party/rust/packed_simd/build.rs
  662. @@ -1,8 +1,8 @@
  663. fn main() {
  664. - println!("cargo:rustc-env=RUSTC_BOOTSTRAP=1");
  665. + println!("cargo:rustc-env=RUSTC_BOOTSTRAP=1");
  666. let target = std::env::var("TARGET")
  667. .expect("TARGET environment variable not defined");
  668. if target.contains("neon") {
  669. println!("cargo:rustc-cfg=libcore_neon");
  670. }
  671. }
  672. diff --git a/third_party/rust/packed_simd/ci/all.sh b/third_party/rust/packed_simd/ci/all.sh
  673. --- a/third_party/rust/packed_simd/ci/all.sh
  674. +++ b/third_party/rust/packed_simd/ci/all.sh
  675. @@ -16,17 +16,17 @@ cargo_check_fmt() {
  676. cargo fmt --all -- --check
  677. }
  678. cargo_fmt() {
  679. cargo fmt --all
  680. }
  681. cargo_clippy() {
  682. - cargo clippy --all -- -D clippy::pedantic
  683. + cargo clippy --all -- -D clippy::perf
  684. }
  685. CMD="-1"
  686. case $op in
  687. clean*)
  688. CMD=cargo_clean
  689. ;;
  690. diff --git a/third_party/rust/packed_simd/ci/docker/aarch64-unknown-linux-gnu/Dockerfile b/third_party/rust/packed_simd/ci/docker/aarch64-unknown-linux-gnu/Dockerfile
  691. --- a/third_party/rust/packed_simd/ci/docker/aarch64-unknown-linux-gnu/Dockerfile
  692. +++ b/third_party/rust/packed_simd/ci/docker/aarch64-unknown-linux-gnu/Dockerfile
  693. @@ -1,9 +1,9 @@
  694. -FROM ubuntu:17.10
  695. +FROM ubuntu:18.04
  696. RUN apt-get update && apt-get install -y --no-install-recommends \
  697. gcc \
  698. ca-certificates \
  699. libc6-dev \
  700. gcc-aarch64-linux-gnu \
  701. libc6-dev-arm64-cross \
  702. qemu-user \
  703. make \
  704. diff --git a/third_party/rust/packed_simd/ci/docker/arm-unknown-linux-gnueabi/Dockerfile b/third_party/rust/packed_simd/ci/docker/arm-unknown-linux-gnueabi/Dockerfile
  705. --- a/third_party/rust/packed_simd/ci/docker/arm-unknown-linux-gnueabi/Dockerfile
  706. +++ b/third_party/rust/packed_simd/ci/docker/arm-unknown-linux-gnueabi/Dockerfile
  707. @@ -1,9 +1,9 @@
  708. -FROM ubuntu:17.10
  709. +FROM ubuntu:18.04
  710. RUN apt-get update && apt-get install -y --no-install-recommends \
  711. gcc \
  712. ca-certificates \
  713. libc6-dev \
  714. libc6-armel-cross \
  715. libc6-dev-armel-cross \
  716. binutils-arm-linux-gnueabi \
  717. gcc-arm-linux-gnueabi \
  718. diff --git a/third_party/rust/packed_simd/ci/docker/arm-unknown-linux-gnueabihf/Dockerfile b/third_party/rust/packed_simd/ci/docker/arm-unknown-linux-gnueabihf/Dockerfile
  719. --- a/third_party/rust/packed_simd/ci/docker/arm-unknown-linux-gnueabihf/Dockerfile
  720. +++ b/third_party/rust/packed_simd/ci/docker/arm-unknown-linux-gnueabihf/Dockerfile
  721. @@ -1,9 +1,9 @@
  722. -FROM ubuntu:17.10
  723. +FROM ubuntu:18.04
  724. RUN apt-get update && apt-get install -y --no-install-recommends \
  725. gcc \
  726. ca-certificates \
  727. libc6-dev \
  728. gcc-arm-linux-gnueabihf \
  729. libc6-dev-armhf-cross \
  730. qemu-user \
  731. make \
  732. diff --git a/third_party/rust/packed_simd/ci/docker/armv7-unknown-linux-gnueabihf/Dockerfile b/third_party/rust/packed_simd/ci/docker/armv7-unknown-linux-gnueabihf/Dockerfile
  733. --- a/third_party/rust/packed_simd/ci/docker/armv7-unknown-linux-gnueabihf/Dockerfile
  734. +++ b/third_party/rust/packed_simd/ci/docker/armv7-unknown-linux-gnueabihf/Dockerfile
  735. @@ -1,9 +1,9 @@
  736. -FROM ubuntu:17.10
  737. +FROM ubuntu:18.04
  738. RUN apt-get update && apt-get install -y --no-install-recommends \
  739. gcc \
  740. ca-certificates \
  741. libc6-dev \
  742. gcc-arm-linux-gnueabihf \
  743. libc6-dev-armhf-cross \
  744. qemu-user \
  745. make \
  746. diff --git a/third_party/rust/packed_simd/ci/docker/i586-unknown-linux-gnu/Dockerfile b/third_party/rust/packed_simd/ci/docker/i586-unknown-linux-gnu/Dockerfile
  747. --- a/third_party/rust/packed_simd/ci/docker/i586-unknown-linux-gnu/Dockerfile
  748. +++ b/third_party/rust/packed_simd/ci/docker/i586-unknown-linux-gnu/Dockerfile
  749. @@ -1,7 +1,7 @@
  750. -FROM ubuntu:17.10
  751. +FROM ubuntu:18.04
  752. RUN apt-get update && apt-get install -y --no-install-recommends \
  753. gcc-multilib \
  754. libc6-dev \
  755. file \
  756. make \
  757. ca-certificates
  758. diff --git a/third_party/rust/packed_simd/ci/docker/i686-unknown-linux-gnu/Dockerfile b/third_party/rust/packed_simd/ci/docker/i686-unknown-linux-gnu/Dockerfile
  759. --- a/third_party/rust/packed_simd/ci/docker/i686-unknown-linux-gnu/Dockerfile
  760. +++ b/third_party/rust/packed_simd/ci/docker/i686-unknown-linux-gnu/Dockerfile
  761. @@ -1,7 +1,7 @@
  762. -FROM ubuntu:17.10
  763. +FROM ubuntu:18.04
  764. RUN apt-get update && apt-get install -y --no-install-recommends \
  765. gcc-multilib \
  766. libc6-dev \
  767. file \
  768. make \
  769. ca-certificates
  770. diff --git a/third_party/rust/packed_simd/ci/docker/mips-unknown-linux-gnu/Dockerfile b/third_party/rust/packed_simd/ci/docker/mips-unknown-linux-gnu/Dockerfile
  771. --- a/third_party/rust/packed_simd/ci/docker/mips-unknown-linux-gnu/Dockerfile
  772. +++ b/third_party/rust/packed_simd/ci/docker/mips-unknown-linux-gnu/Dockerfile
  773. @@ -1,9 +1,9 @@
  774. -FROM ubuntu:17.10
  775. +FROM ubuntu:18.04
  776. RUN apt-get update && apt-get install -y --no-install-recommends \
  777. gcc libc6-dev qemu-user ca-certificates \
  778. gcc-mips-linux-gnu libc6-dev-mips-cross \
  779. qemu-system-mips \
  780. qemu-user \
  781. make \
  782. file
  783. diff --git a/third_party/rust/packed_simd/ci/docker/mips64-unknown-linux-gnuabi64/Dockerfile b/third_party/rust/packed_simd/ci/docker/mips64-unknown-linux-gnuabi64/Dockerfile
  784. --- a/third_party/rust/packed_simd/ci/docker/mips64-unknown-linux-gnuabi64/Dockerfile
  785. +++ b/third_party/rust/packed_simd/ci/docker/mips64-unknown-linux-gnuabi64/Dockerfile
  786. @@ -1,9 +1,9 @@
  787. -FROM ubuntu:17.10
  788. +FROM ubuntu:18.04
  789. RUN apt-get update && apt-get install -y --no-install-recommends \
  790. gcc libc6-dev qemu-user ca-certificates \
  791. gcc-mips64-linux-gnuabi64 libc6-dev-mips64-cross \
  792. qemu-system-mips64 qemu-user
  793. ENV CARGO_TARGET_MIPS64_UNKNOWN_LINUX_GNUABI64_LINKER=mips64-linux-gnuabi64-gcc \
  794. CARGO_TARGET_MIPS64_UNKNOWN_LINUX_GNUABI64_RUNNER="qemu-mips64 -L /usr/mips64-linux-gnuabi64" \
  795. diff --git a/third_party/rust/packed_simd/ci/docker/mips64el-unknown-linux-gnuabi64/Dockerfile b/third_party/rust/packed_simd/ci/docker/mips64el-unknown-linux-gnuabi64/Dockerfile
  796. --- a/third_party/rust/packed_simd/ci/docker/mips64el-unknown-linux-gnuabi64/Dockerfile
  797. +++ b/third_party/rust/packed_simd/ci/docker/mips64el-unknown-linux-gnuabi64/Dockerfile
  798. @@ -1,9 +1,9 @@
  799. -FROM ubuntu:17.10
  800. +FROM ubuntu:18.04
  801. RUN apt-get update && apt-get install -y --no-install-recommends \
  802. gcc libc6-dev qemu-user ca-certificates \
  803. gcc-mips64el-linux-gnuabi64 libc6-dev-mips64el-cross \
  804. qemu-system-mips64el
  805. ENV CARGO_TARGET_MIPS64EL_UNKNOWN_LINUX_GNUABI64_LINKER=mips64el-linux-gnuabi64-gcc \
  806. CARGO_TARGET_MIPS64EL_UNKNOWN_LINUX_GNUABI64_RUNNER="qemu-mips64el -L /usr/mips64el-linux-gnuabi64" \
  807. diff --git a/third_party/rust/packed_simd/ci/docker/mipsel-unknown-linux-musl/Dockerfile b/third_party/rust/packed_simd/ci/docker/mipsel-unknown-linux-musl/Dockerfile
  808. --- a/third_party/rust/packed_simd/ci/docker/mipsel-unknown-linux-musl/Dockerfile
  809. +++ b/third_party/rust/packed_simd/ci/docker/mipsel-unknown-linux-musl/Dockerfile
  810. @@ -11,15 +11,15 @@ RUN apt-get update && \
  811. bzip2 \
  812. curl \
  813. file
  814. RUN mkdir /toolchain
  815. # Note that this originally came from:
  816. # https://downloads.openwrt.org/snapshots/trunk/malta/generic/OpenWrt-Toolchain-malta-le_gcc-5.3.0_musl-1.1.15.Linux-x86_64.tar.bz2
  817. -RUN curl -L https://s3-us-west-1.amazonaws.com/rust-lang-ci2/libc/OpenWrt-Toolchain-malta-le_gcc-5.3.0_musl-1.1.15.Linux-x86_64.tar.bz2 | \
  818. +RUN curl -L https://ci-mirrors.rust-lang.org/libc/OpenWrt-Toolchain-malta-le_gcc-5.3.0_musl-1.1.15.Linux-x86_64.tar.bz2 | \
  819. tar xjf - -C /toolchain --strip-components=2
  820. ENV PATH=$PATH:/rust/bin:/toolchain/bin \
  821. CC_mipsel_unknown_linux_musl=mipsel-openwrt-linux-gcc \
  822. CARGO_TARGET_MIPSEL_UNKNOWN_LINUX_MUSL_LINKER=mipsel-openwrt-linux-gcc \
  823. - CARGO_TARGET_MIPSEL_UNKNOWN_LINUX_MUSL_RUNNER="qemu-mipsel -L /toolchain"
  824. \ No newline at end of file
  825. + CARGO_TARGET_MIPSEL_UNKNOWN_LINUX_MUSL_RUNNER="qemu-mipsel -L /toolchain"
  826. diff --git a/third_party/rust/packed_simd/ci/docker/powerpc-unknown-linux-gnu/Dockerfile b/third_party/rust/packed_simd/ci/docker/powerpc-unknown-linux-gnu/Dockerfile
  827. --- a/third_party/rust/packed_simd/ci/docker/powerpc-unknown-linux-gnu/Dockerfile
  828. +++ b/third_party/rust/packed_simd/ci/docker/powerpc-unknown-linux-gnu/Dockerfile
  829. @@ -1,12 +1,13 @@
  830. -FROM ubuntu:17.10
  831. +FROM ubuntu:18.04
  832. RUN apt-get update && apt-get install -y --no-install-recommends \
  833. gcc libc6-dev qemu-user ca-certificates \
  834. gcc-powerpc-linux-gnu libc6-dev-powerpc-cross \
  835. qemu-system-ppc \
  836. make \
  837. file
  838. ENV CARGO_TARGET_POWERPC_UNKNOWN_LINUX_GNU_LINKER=powerpc-linux-gnu-gcc \
  839. CARGO_TARGET_POWERPC_UNKNOWN_LINUX_GNU_RUNNER="qemu-ppc -cpu Vger -L /usr/powerpc-linux-gnu" \
  840. + CC=powerpc-linux-gnu-gcc \
  841. OBJDUMP=powerpc-linux-gnu-objdump
  842. diff --git a/third_party/rust/packed_simd/ci/docker/powerpc64-unknown-linux-gnu/Dockerfile b/third_party/rust/packed_simd/ci/docker/powerpc64-unknown-linux-gnu/Dockerfile
  843. --- a/third_party/rust/packed_simd/ci/docker/powerpc64-unknown-linux-gnu/Dockerfile
  844. +++ b/third_party/rust/packed_simd/ci/docker/powerpc64-unknown-linux-gnu/Dockerfile
  845. @@ -1,9 +1,9 @@
  846. -FROM ubuntu:17.10
  847. +FROM ubuntu:18.04
  848. RUN apt-get update && apt-get install -y --no-install-recommends \
  849. gcc \
  850. ca-certificates \
  851. libc6-dev \
  852. gcc-powerpc64-linux-gnu \
  853. libc6-dev-ppc64-cross \
  854. qemu-user \
  855. diff --git a/third_party/rust/packed_simd/ci/docker/powerpc64le-unknown-linux-gnu/Dockerfile b/third_party/rust/packed_simd/ci/docker/powerpc64le-unknown-linux-gnu/Dockerfile
  856. --- a/third_party/rust/packed_simd/ci/docker/powerpc64le-unknown-linux-gnu/Dockerfile
  857. +++ b/third_party/rust/packed_simd/ci/docker/powerpc64le-unknown-linux-gnu/Dockerfile
  858. @@ -1,9 +1,9 @@
  859. -FROM ubuntu:17.10
  860. +FROM ubuntu:18.04
  861. RUN apt-get update && apt-get install -y --no-install-recommends \
  862. gcc libc6-dev qemu-user ca-certificates \
  863. gcc-powerpc64le-linux-gnu libc6-dev-ppc64el-cross \
  864. qemu-system-ppc file make
  865. ENV CARGO_TARGET_POWERPC64LE_UNKNOWN_LINUX_GNU_LINKER=powerpc64le-linux-gnu-gcc \
  866. CARGO_TARGET_POWERPC64LE_UNKNOWN_LINUX_GNU_RUNNER="qemu-ppc64le -L /usr/powerpc64le-linux-gnu" \
  867. diff --git a/third_party/rust/packed_simd/ci/docker/thumbv7neon-unknown-linux-gnueabihf/Dockerfile b/third_party/rust/packed_simd/ci/docker/thumbv7neon-unknown-linux-gnueabihf/Dockerfile
  868. --- a/third_party/rust/packed_simd/ci/docker/thumbv7neon-unknown-linux-gnueabihf/Dockerfile
  869. +++ b/third_party/rust/packed_simd/ci/docker/thumbv7neon-unknown-linux-gnueabihf/Dockerfile
  870. @@ -1,9 +1,9 @@
  871. -FROM ubuntu:17.10
  872. +FROM ubuntu:18.04
  873. RUN apt-get update && apt-get install -y --no-install-recommends \
  874. gcc \
  875. ca-certificates \
  876. libc6-dev \
  877. gcc-arm-linux-gnueabihf \
  878. libc6-dev-armhf-cross \
  879. qemu-user \
  880. make \
  881. diff --git a/third_party/rust/packed_simd/ci/docker/x86_64-unknown-linux-gnu/Dockerfile b/third_party/rust/packed_simd/ci/docker/x86_64-unknown-linux-gnu/Dockerfile
  882. --- a/third_party/rust/packed_simd/ci/docker/x86_64-unknown-linux-gnu/Dockerfile
  883. +++ b/third_party/rust/packed_simd/ci/docker/x86_64-unknown-linux-gnu/Dockerfile
  884. @@ -1,9 +1,9 @@
  885. -FROM ubuntu:17.10
  886. +FROM ubuntu:18.04
  887. RUN apt-get update && apt-get install -y --no-install-recommends \
  888. gcc \
  889. libc6-dev \
  890. file \
  891. make \
  892. ca-certificates \
  893. cmake \
  894. libclang-dev \
  895. diff --git a/third_party/rust/packed_simd/ci/dox.sh b/third_party/rust/packed_simd/ci/dox.sh
  896. --- a/third_party/rust/packed_simd/ci/dox.sh
  897. +++ b/third_party/rust/packed_simd/ci/dox.sh
  898. @@ -13,12 +13,15 @@ cargo doc --features=into_bits
  899. # mdbook build perf-guide -d target/doc/perf-guide
  900. cd perf-guide
  901. mdbook build
  902. cd -
  903. cp -r perf-guide/book target/doc/perf-guide
  904. # If we're on travis, not a PR, and on the right branch, publish!
  905. if [ "$TRAVIS_PULL_REQUEST" = "false" ] && [ "$TRAVIS_BRANCH" = "master" ]; then
  906. - pip install ghp_import --install-option="--prefix=$HOME/.local"
  907. - $HOME/.local/bin/ghp-import -n target/doc
  908. + python3 -vV
  909. + pip -vV
  910. + python3.9 -vV
  911. + pip install ghp_import --user
  912. + ghp-import -n target/doc
  913. git push -qf https://${GH_PAGES}@github.com/${TRAVIS_REPO_SLUG}.git gh-pages
  914. fi
  915. diff --git a/third_party/rust/packed_simd/ci/run.sh b/third_party/rust/packed_simd/ci/run.sh
  916. --- a/third_party/rust/packed_simd/ci/run.sh
  917. +++ b/third_party/rust/packed_simd/ci/run.sh
  918. @@ -73,19 +73,21 @@ cargo_test_impl() {
  919. # Debug run:
  920. if [[ "${TARGET}" != "wasm32-unknown-unknown" ]]; then
  921. # Run wasm32-unknown-unknown in release mode only
  922. cargo_test_impl
  923. fi
  924. if [[ "${TARGET}" == "x86_64-unknown-linux-gnu" ]] || [[ "${TARGET}" == "x86_64-pc-windows-msvc" ]]; then
  925. # use sleef on linux and windows x86_64 builds
  926. - cargo_test_impl --release --features=into_bits,core_arch,sleef-sys
  927. + # FIXME: Use `core_arch,sleef-sys` features once they works again
  928. + cargo_test_impl --release --features=into_bits
  929. else
  930. - cargo_test_impl --release --features=into_bits,core_arch
  931. + # FIXME: Use `core_arch` feature once it works again
  932. + cargo_test_impl --release --features=into_bits
  933. fi
  934. # Verify code generation
  935. if [[ "${NOVERIFY}" != "1" ]]; then
  936. cp -r verify/verify target/verify
  937. export STDSIMD_ASSERT_INSTR_LIMIT=30
  938. if [[ "${TARGET}" == "i586-unknown-linux-gnu" ]]; then
  939. export STDSIMD_ASSERT_INSTR_LIMIT=50
  940. diff --git a/third_party/rust/packed_simd/ci/setup_benchmarks.sh b/third_party/rust/packed_simd/ci/setup_benchmarks.sh
  941. --- a/third_party/rust/packed_simd/ci/setup_benchmarks.sh
  942. +++ b/third_party/rust/packed_simd/ci/setup_benchmarks.sh
  943. @@ -1,10 +1,7 @@
  944. #!/usr/bin/env bash
  945. set -ex
  946. # Get latest ISPC binary for the target and put it in the path
  947. git clone https://github.com/gnzlbg/ispc-binaries
  948. cp ispc-binaries/ispc-${TARGET} ispc
  949. -
  950. -# Rust-bindgen requires RUSTFMT
  951. -rustup component add rustfmt-preview
  952. diff --git a/third_party/rust/packed_simd/src/api.rs b/third_party/rust/packed_simd/src/api.rs
  953. --- a/third_party/rust/packed_simd/src/api.rs
  954. +++ b/third_party/rust/packed_simd/src/api.rs
  955. @@ -1,10 +1,12 @@
  956. //! Implements the Simd<[T; N]> APIs
  957. +#[macro_use]
  958. +mod bitmask;
  959. crate mod cast;
  960. #[macro_use]
  961. mod cmp;
  962. #[macro_use]
  963. mod default;
  964. #[macro_use]
  965. mod fmt;
  966. #[macro_use]
  967. @@ -34,17 +36,17 @@ mod swap_bytes;
  968. #[macro_use]
  969. mod bit_manip;
  970. #[cfg(feature = "into_bits")]
  971. crate mod into_bits;
  972. macro_rules! impl_i {
  973. ([$elem_ty:ident; $elem_n:expr]: $tuple_id:ident, $mask_ty:ident
  974. - | $ielem_ty:ident | $test_tt:tt | $($elem_ids:ident),*
  975. + | $ielem_ty:ident, $ibitmask_ty:ident | $test_tt:tt | $($elem_ids:ident),*
  976. | From: $($from_vec_ty:ident),* | $(#[$doc:meta])*) => {
  977. impl_minimal_iuf!([$elem_ty; $elem_n]: $tuple_id | $ielem_ty | $test_tt
  978. | $($elem_ids),* | $(#[$doc])*);
  979. impl_ops_vector_arithmetic!([$elem_ty; $elem_n]: $tuple_id | $test_tt);
  980. impl_ops_scalar_arithmetic!([$elem_ty; $elem_n]: $tuple_id | $test_tt);
  981. impl_ops_vector_bitwise!(
  982. [$elem_ty; $elem_n]: $tuple_id | $test_tt | (!(0 as $elem_ty), 0)
  983. );
  984. @@ -88,26 +90,27 @@ macro_rules! impl_i {
  985. [$elem_ty; $elem_n]: $tuple_id | $test_tt | (0, 1)
  986. );
  987. impl_cmp_eq!([$elem_ty; $elem_n]: $tuple_id | $test_tt | (0, 1));
  988. impl_cmp_vertical!(
  989. [$elem_ty; $elem_n]: $tuple_id, $mask_ty, false, (1, 0) | $test_tt
  990. );
  991. impl_cmp_partial_ord!([$elem_ty; $elem_n]: $tuple_id | $test_tt);
  992. impl_cmp_ord!([$elem_ty; $elem_n]: $tuple_id | $test_tt | (0, 1));
  993. + impl_bitmask!($tuple_id | $ibitmask_ty | (-1, 0) | $test_tt);
  994. test_select!($elem_ty, $mask_ty, $tuple_id, (1, 2) | $test_tt);
  995. test_cmp_partial_ord_int!([$elem_ty; $elem_n]: $tuple_id | $test_tt);
  996. test_shuffle1_dyn!([$elem_ty; $elem_n]: $tuple_id | $test_tt);
  997. }
  998. }
  999. macro_rules! impl_u {
  1000. ([$elem_ty:ident; $elem_n:expr]: $tuple_id:ident, $mask_ty:ident
  1001. - | $ielem_ty:ident | $test_tt:tt | $($elem_ids:ident),*
  1002. + | $ielem_ty:ident, $ibitmask_ty:ident | $test_tt:tt | $($elem_ids:ident),*
  1003. | From: $($from_vec_ty:ident),* | $(#[$doc:meta])*) => {
  1004. impl_minimal_iuf!([$elem_ty; $elem_n]: $tuple_id | $ielem_ty | $test_tt
  1005. | $($elem_ids),* | $(#[$doc])*);
  1006. impl_ops_vector_arithmetic!([$elem_ty; $elem_n]: $tuple_id | $test_tt);
  1007. impl_ops_scalar_arithmetic!([$elem_ty; $elem_n]: $tuple_id | $test_tt);
  1008. impl_ops_vector_bitwise!(
  1009. [$elem_ty; $elem_n]: $tuple_id | $test_tt | (!(0 as $elem_ty), 0)
  1010. );
  1011. @@ -150,16 +153,18 @@ macro_rules! impl_u {
  1012. [$elem_ty; $elem_n]: $tuple_id | $test_tt | (1, 0)
  1013. );
  1014. impl_cmp_eq!([$elem_ty; $elem_n]: $tuple_id | $test_tt | (0, 1));
  1015. impl_cmp_vertical!(
  1016. [$elem_ty; $elem_n]: $tuple_id, $mask_ty, false, (1, 0) | $test_tt
  1017. );
  1018. impl_cmp_partial_ord!([$elem_ty; $elem_n]: $tuple_id | $test_tt);
  1019. impl_cmp_ord!([$elem_ty; $elem_n]: $tuple_id | $test_tt | (0, 1));
  1020. + impl_bitmask!($tuple_id | $ibitmask_ty | ($ielem_ty::max_value(), 0) |
  1021. + $test_tt);
  1022. test_select!($elem_ty, $mask_ty, $tuple_id, (1, 2) | $test_tt);
  1023. test_cmp_partial_ord_int!([$elem_ty; $elem_n]: $tuple_id | $test_tt);
  1024. test_shuffle1_dyn!([$elem_ty; $elem_n]: $tuple_id | $test_tt);
  1025. }
  1026. }
  1027. macro_rules! impl_f {
  1028. @@ -217,17 +222,18 @@ macro_rules! impl_f {
  1029. test_reduction_float_min_max!(
  1030. [$elem_ty; $elem_n]: $tuple_id | $test_tt
  1031. );
  1032. test_shuffle1_dyn!([$elem_ty; $elem_n]: $tuple_id | $test_tt);
  1033. }
  1034. }
  1035. macro_rules! impl_m {
  1036. - ([$elem_ty:ident; $elem_n:expr]: $tuple_id:ident | $ielem_ty:ident
  1037. + ([$elem_ty:ident; $elem_n:expr]: $tuple_id:ident
  1038. + | $ielem_ty:ident, $ibitmask_ty:ident
  1039. | $test_tt:tt | $($elem_ids:ident),* | From: $($from_vec_ty:ident),*
  1040. | $(#[$doc:meta])*) => {
  1041. impl_minimal_mask!(
  1042. [$elem_ty; $elem_n]: $tuple_id | $ielem_ty | $test_tt
  1043. | $($elem_ids),* | $(#[$doc])*
  1044. );
  1045. impl_ops_vector_mask_bitwise!(
  1046. [$elem_ty; $elem_n]: $tuple_id | $test_tt | (true, false)
  1047. @@ -260,16 +266,17 @@ macro_rules! impl_m {
  1048. | $test_tt
  1049. );
  1050. impl_select!([$elem_ty; $elem_n]: $tuple_id | $test_tt);
  1051. impl_cmp_partial_ord!([$elem_ty; $elem_n]: $tuple_id | $test_tt);
  1052. impl_cmp_ord!(
  1053. [$elem_ty; $elem_n]: $tuple_id | $test_tt | (false, true)
  1054. );
  1055. impl_shuffle1_dyn!([$elem_ty; $elem_n]: $tuple_id | $test_tt);
  1056. + impl_bitmask!($tuple_id | $ibitmask_ty | (true, false) | $test_tt);
  1057. test_cmp_partial_ord_mask!([$elem_ty; $elem_n]: $tuple_id | $test_tt);
  1058. test_shuffle1_dyn_mask!([$elem_ty; $elem_n]: $tuple_id | $test_tt);
  1059. }
  1060. }
  1061. macro_rules! impl_const_p {
  1062. ([$elem_ty:ty; $elem_n:expr]: $tuple_id:ident, $mask_ty:ident,
  1063. diff --git a/third_party/rust/packed_simd/src/api/bit_manip.rs b/third_party/rust/packed_simd/src/api/bit_manip.rs
  1064. --- a/third_party/rust/packed_simd/src/api/bit_manip.rs
  1065. +++ b/third_party/rust/packed_simd/src/api/bit_manip.rs
  1066. @@ -32,16 +32,17 @@ macro_rules! impl_bit_manip {
  1067. }
  1068. }
  1069. test_if! {
  1070. $test_tt:
  1071. paste::item_with_macros! {
  1072. #[allow(overflowing_literals)]
  1073. pub mod [<$id _bit_manip>] {
  1074. + #![allow(const_item_mutation)]
  1075. use super::*;
  1076. const LANE_WIDTH: usize = mem::size_of::<$elem_ty>() * 8;
  1077. macro_rules! test_func {
  1078. ($x:expr, $func:ident) => {{
  1079. let mut actual = $x;
  1080. for i in 0..$id::lanes() {
  1081. diff --git a/third_party/rust/packed_simd/src/api/bitmask.rs b/third_party/rust/packed_simd/src/api/bitmask.rs
  1082. new file mode 100644
  1083. --- /dev/null
  1084. +++ b/third_party/rust/packed_simd/src/api/bitmask.rs
  1085. @@ -0,0 +1,82 @@
  1086. +//! Bitmask API
  1087. +
  1088. +macro_rules! impl_bitmask {
  1089. + ($id:ident | $ibitmask_ty:ident | ($set:expr, $clear:expr)
  1090. + | $test_tt:tt) => {
  1091. + impl $id {
  1092. + /// Creates a bitmask with the MSB of each vector lane.
  1093. + ///
  1094. + /// If the vector has less than 8 lanes, the bits that do not
  1095. + /// correspond to any vector lanes are cleared.
  1096. + #[inline]
  1097. + pub fn bitmask(self) -> $ibitmask_ty {
  1098. + unsafe { codegen::llvm::simd_bitmask(self.0) }
  1099. + }
  1100. + }
  1101. +
  1102. + test_if! {
  1103. + $test_tt:
  1104. + paste::item! {
  1105. + #[cfg(not(any(
  1106. + // FIXME: https://github.com/rust-lang-nursery/packed_simd/issues/210
  1107. + all(target_arch = "mips", target_endian = "big"),
  1108. + all(target_arch = "mips64", target_endian = "big"),
  1109. + target_arch = "sparc64",
  1110. + target_arch = "s390x",
  1111. + )))]
  1112. + pub mod [<$id _bitmask>] {
  1113. + use super::*;
  1114. + #[cfg_attr(not(target_arch = "wasm32"), test)]
  1115. + #[cfg_attr(target_arch = "wasm32", wasm_bindgen_test)]
  1116. + fn bitmask() {
  1117. + // clear all lanes
  1118. + let vec = $id::splat($clear as _);
  1119. + let bitmask: $ibitmask_ty = 0;
  1120. + assert_eq!(vec.bitmask(), bitmask);
  1121. +
  1122. + // set even lanes
  1123. + let mut vec = $id::splat($clear as _);
  1124. + for i in 0..$id::lanes() {
  1125. + if i % 2 == 0 {
  1126. + vec = vec.replace(i, $set as _);
  1127. + }
  1128. + }
  1129. + // create bitmask with even lanes set:
  1130. + let mut bitmask: $ibitmask_ty = 0;
  1131. + for i in 0..$id::lanes() {
  1132. + if i % 2 == 0 {
  1133. + bitmask |= 1 << i;
  1134. + }
  1135. + }
  1136. + assert_eq!(vec.bitmask(), bitmask);
  1137. +
  1138. +
  1139. + // set odd lanes
  1140. + let mut vec = $id::splat($clear as _);
  1141. + for i in 0..$id::lanes() {
  1142. + if i % 2 != 0 {
  1143. + vec = vec.replace(i, $set as _);
  1144. + }
  1145. + }
  1146. + // create bitmask with odd lanes set:
  1147. + let mut bitmask: $ibitmask_ty = 0;
  1148. + for i in 0..$id::lanes() {
  1149. + if i % 2 != 0 {
  1150. + bitmask |= 1 << i;
  1151. + }
  1152. + }
  1153. + assert_eq!(vec.bitmask(), bitmask);
  1154. +
  1155. + // set all lanes
  1156. + let vec = $id::splat($set as _);
  1157. + let mut bitmask: $ibitmask_ty = 0;
  1158. + for i in 0..$id::lanes() {
  1159. + bitmask |= 1 << i;
  1160. + }
  1161. + assert_eq!(vec.bitmask(), bitmask);
  1162. + }
  1163. + }
  1164. + }
  1165. + }
  1166. + };
  1167. +}
  1168. diff --git a/third_party/rust/packed_simd/src/api/cast/v128.rs b/third_party/rust/packed_simd/src/api/cast/v128.rs
  1169. --- a/third_party/rust/packed_simd/src/api/cast/v128.rs
  1170. +++ b/third_party/rust/packed_simd/src/api/cast/v128.rs
  1171. @@ -1,10 +1,10 @@
  1172. //! `FromCast` and `IntoCast` implementations for portable 128-bit wide vectors
  1173. -#![rustfmt::skip]
  1174. +#[rustfmt::skip]
  1175. use crate::*;
  1176. impl_from_cast!(
  1177. i8x16[test_v128]: u8x16, m8x16, i16x16, u16x16, m16x16, i32x16, u32x16, f32x16, m32x16
  1178. );
  1179. impl_from_cast!(
  1180. u8x16[test_v128]: i8x16, m8x16, i16x16, u16x16, m16x16, i32x16, u32x16, f32x16, m32x16
  1181. diff --git a/third_party/rust/packed_simd/src/api/cast/v16.rs b/third_party/rust/packed_simd/src/api/cast/v16.rs
  1182. --- a/third_party/rust/packed_simd/src/api/cast/v16.rs
  1183. +++ b/third_party/rust/packed_simd/src/api/cast/v16.rs
  1184. @@ -1,10 +1,10 @@
  1185. //! `FromCast` and `IntoCast` implementations for portable 16-bit wide vectors
  1186. -#![rustfmt::skip]
  1187. +#[rustfmt::skip]
  1188. use crate::*;
  1189. impl_from_cast!(
  1190. i8x2[test_v16]: u8x2, m8x2, i16x2, u16x2, m16x2, i32x2, u32x2, f32x2, m32x2,
  1191. i64x2, u64x2, f64x2, m64x2, i128x2, u128x2, m128x2, isizex2, usizex2, msizex2
  1192. );
  1193. impl_from_cast!(
  1194. diff --git a/third_party/rust/packed_simd/src/api/cast/v256.rs b/third_party/rust/packed_simd/src/api/cast/v256.rs
  1195. --- a/third_party/rust/packed_simd/src/api/cast/v256.rs
  1196. +++ b/third_party/rust/packed_simd/src/api/cast/v256.rs
  1197. @@ -1,10 +1,10 @@
  1198. //! `FromCast` and `IntoCast` implementations for portable 256-bit wide vectors
  1199. -#![rustfmt::skip]
  1200. +#[rustfmt::skip]
  1201. use crate::*;
  1202. impl_from_cast!(i8x32[test_v256]: u8x32, m8x32, i16x32, u16x32, m16x32);
  1203. impl_from_cast!(u8x32[test_v256]: i8x32, m8x32, i16x32, u16x32, m16x32);
  1204. impl_from_cast_mask!(m8x32[test_v256]: i8x32, u8x32, i16x32, u16x32, m16x32);
  1205. impl_from_cast!(
  1206. diff --git a/third_party/rust/packed_simd/src/api/cast/v32.rs b/third_party/rust/packed_simd/src/api/cast/v32.rs
  1207. --- a/third_party/rust/packed_simd/src/api/cast/v32.rs
  1208. +++ b/third_party/rust/packed_simd/src/api/cast/v32.rs
  1209. @@ -1,10 +1,10 @@
  1210. //! `FromCast` and `IntoCast` implementations for portable 32-bit wide vectors
  1211. -#![rustfmt::skip]
  1212. +#[rustfmt::skip]
  1213. use crate::*;
  1214. impl_from_cast!(
  1215. i8x4[test_v32]: u8x4, m8x4, i16x4, u16x4, m16x4, i32x4, u32x4, f32x4, m32x4,
  1216. i64x4, u64x4, f64x4, m64x4, i128x4, u128x4, m128x4, isizex4, usizex4, msizex4
  1217. );
  1218. impl_from_cast!(
  1219. diff --git a/third_party/rust/packed_simd/src/api/cast/v512.rs b/third_party/rust/packed_simd/src/api/cast/v512.rs
  1220. --- a/third_party/rust/packed_simd/src/api/cast/v512.rs
  1221. +++ b/third_party/rust/packed_simd/src/api/cast/v512.rs
  1222. @@ -1,10 +1,10 @@
  1223. //! `FromCast` and `IntoCast` implementations for portable 512-bit wide vectors
  1224. -#![rustfmt::skip]
  1225. +#[rustfmt::skip]
  1226. use crate::*;
  1227. impl_from_cast!(i8x64[test_v512]: u8x64, m8x64);
  1228. impl_from_cast!(u8x64[test_v512]: i8x64, m8x64);
  1229. impl_from_cast_mask!(m8x64[test_v512]: i8x64, u8x64);
  1230. impl_from_cast!(i16x32[test_v512]: i8x32, u8x32, m8x32, u16x32, m16x32);
  1231. diff --git a/third_party/rust/packed_simd/src/api/cast/v64.rs b/third_party/rust/packed_simd/src/api/cast/v64.rs
  1232. --- a/third_party/rust/packed_simd/src/api/cast/v64.rs
  1233. +++ b/third_party/rust/packed_simd/src/api/cast/v64.rs
  1234. @@ -1,10 +1,10 @@
  1235. //! `FromCast` and `IntoCast` implementations for portable 64-bit wide vectors
  1236. -#![rustfmt::skip]
  1237. +#[rustfmt::skip]
  1238. use crate::*;
  1239. impl_from_cast!(
  1240. i8x8[test_v64]: u8x8, m8x8, i16x8, u16x8, m16x8, i32x8, u32x8, f32x8, m32x8,
  1241. i64x8, u64x8, f64x8, m64x8, isizex8, usizex8, msizex8
  1242. );
  1243. impl_from_cast!(
  1244. diff --git a/third_party/rust/packed_simd/src/api/default.rs b/third_party/rust/packed_simd/src/api/default.rs
  1245. --- a/third_party/rust/packed_simd/src/api/default.rs
  1246. +++ b/third_party/rust/packed_simd/src/api/default.rs
  1247. @@ -7,16 +7,18 @@ macro_rules! impl_default {
  1248. fn default() -> Self {
  1249. Self::splat($elem_ty::default())
  1250. }
  1251. }
  1252. test_if!{
  1253. $test_tt:
  1254. paste::item! {
  1255. + // Comparisons use integer casts within mantissa^1 range.
  1256. + #[allow(clippy::float_cmp)]
  1257. pub mod [<$id _default>] {
  1258. use super::*;
  1259. #[cfg_attr(not(target_arch = "wasm32"), test)] #[cfg_attr(target_arch = "wasm32", wasm_bindgen_test)]
  1260. fn default() {
  1261. let a = $id::default();
  1262. for i in 0..$id::lanes() {
  1263. assert_eq!(a.extract(i), $elem_ty::default());
  1264. }
  1265. diff --git a/third_party/rust/packed_simd/src/api/from/from_array.rs b/third_party/rust/packed_simd/src/api/from/from_array.rs
  1266. --- a/third_party/rust/packed_simd/src/api/from/from_array.rs
  1267. +++ b/third_party/rust/packed_simd/src/api/from/from_array.rs
  1268. @@ -51,16 +51,18 @@ macro_rules! impl_from_array {
  1269. unsafe { U { array: self }.vec }
  1270. }
  1271. }
  1272. */
  1273. test_if! {
  1274. $test_tt:
  1275. paste::item! {
  1276. + // Comparisons use integer casts within mantissa^1 range.
  1277. + #[allow(clippy::float_cmp)]
  1278. mod [<$id _from>] {
  1279. use super::*;
  1280. #[test]
  1281. fn array() {
  1282. let vec: $id = Default::default();
  1283. // FIXME: Workaround for arrays with more than 32
  1284. // elements.
  1285. diff --git a/third_party/rust/packed_simd/src/api/hash.rs b/third_party/rust/packed_simd/src/api/hash.rs
  1286. --- a/third_party/rust/packed_simd/src/api/hash.rs
  1287. +++ b/third_party/rust/packed_simd/src/api/hash.rs
  1288. @@ -31,16 +31,18 @@ macro_rules! impl_hash {
  1289. crate::mem::size_of::<A>(),
  1290. crate::mem::size_of::<$id>()
  1291. );
  1292. #[allow(deprecated)]
  1293. let mut a_hash = SipHasher13::new();
  1294. let mut v_hash = a_hash.clone();
  1295. a.hash(&mut a_hash);
  1296. + // Integer within mantissa^1 range.
  1297. + #[allow(clippy::float_cmp)]
  1298. let v = $id::splat(42 as $elem_ty);
  1299. v.hash(&mut v_hash);
  1300. assert_eq!(a_hash.finish(), v_hash.finish());
  1301. }
  1302. }
  1303. }
  1304. }
  1305. };
  1306. diff --git a/third_party/rust/packed_simd/src/api/into_bits/arch_specific.rs b/third_party/rust/packed_simd/src/api/into_bits/arch_specific.rs
  1307. --- a/third_party/rust/packed_simd/src/api/into_bits/arch_specific.rs
  1308. +++ b/third_party/rust/packed_simd/src/api/into_bits/arch_specific.rs
  1309. @@ -1,11 +1,11 @@
  1310. //! `FromBits` and `IntoBits` between portable vector types and the
  1311. //! architecture-specific vector types.
  1312. -#![rustfmt::skip]
  1313. +#[rustfmt::skip]
  1314. // FIXME: MIPS FromBits/IntoBits
  1315. #[allow(unused)]
  1316. use crate::*;
  1317. /// This macro implements FromBits for the portable and the architecture
  1318. /// specific vector types.
  1319. @@ -79,17 +79,16 @@ macro_rules! impl_arch {
  1320. }
  1321. ////////////////////////////////////////////////////////////////////////////////
  1322. // Implementations for the 64-bit wide vector types:
  1323. // FIXME: 64-bit single element types
  1324. // FIXME: arm/aarch float16x4_t missing
  1325. impl_arch!(
  1326. - [x86["x86"]: __m64], [x86_64["x86_64"]: __m64],
  1327. [arm["arm"]: int8x8_t, uint8x8_t, poly8x8_t, int16x4_t, uint16x4_t,
  1328. poly16x4_t, int32x2_t, uint32x2_t, float32x2_t, int64x1_t,
  1329. uint64x1_t],
  1330. [aarch64["aarch64"]: int8x8_t, uint8x8_t, poly8x8_t, int16x4_t, uint16x4_t,
  1331. poly16x4_t, int32x2_t, uint32x2_t, float32x2_t, int64x1_t, uint64x1_t,
  1332. float64x1_t] |
  1333. from: i8x8, u8x8, m8x8, i16x4, u16x4, m16x4, i32x2, u32x2, f32x2, m32x2 |
  1334. into: i8x8, u8x8, i16x4, u16x4, i32x2, u32x2, f32x2 |
  1335. diff --git a/third_party/rust/packed_simd/src/api/into_bits/v128.rs b/third_party/rust/packed_simd/src/api/into_bits/v128.rs
  1336. --- a/third_party/rust/packed_simd/src/api/into_bits/v128.rs
  1337. +++ b/third_party/rust/packed_simd/src/api/into_bits/v128.rs
  1338. @@ -1,10 +1,10 @@
  1339. //! `FromBits` and `IntoBits` implementations for portable 128-bit wide vectors
  1340. -#![rustfmt::skip]
  1341. +#[rustfmt::skip]
  1342. #[allow(unused)] // wasm_bindgen_test
  1343. use crate::*;
  1344. impl_from_bits!(i8x16[test_v128]: u8x16, m8x16, i16x8, u16x8, m16x8, i32x4, u32x4, f32x4, m32x4, i64x2, u64x2, f64x2, m64x2, i128x1, u128x1, m128x1);
  1345. impl_from_bits!(u8x16[test_v128]: i8x16, m8x16, i16x8, u16x8, m16x8, i32x4, u32x4, f32x4, m32x4, i64x2, u64x2, f64x2, m64x2, i128x1, u128x1, m128x1);
  1346. impl_from_bits!(m8x16[test_v128]: m16x8, m32x4, m64x2, m128x1);
  1347. diff --git a/third_party/rust/packed_simd/src/api/into_bits/v16.rs b/third_party/rust/packed_simd/src/api/into_bits/v16.rs
  1348. --- a/third_party/rust/packed_simd/src/api/into_bits/v16.rs
  1349. +++ b/third_party/rust/packed_simd/src/api/into_bits/v16.rs
  1350. @@ -1,9 +1,9 @@
  1351. //! `FromBits` and `IntoBits` implementations for portable 16-bit wide vectors
  1352. -#![rustfmt::skip]
  1353. +#[rustfmt::skip]
  1354. #[allow(unused)] // wasm_bindgen_test
  1355. use crate::*;
  1356. impl_from_bits!(i8x2[test_v16]: u8x2, m8x2);
  1357. impl_from_bits!(u8x2[test_v16]: i8x2, m8x2);
  1358. // note: m8x2 cannot be constructed from all i8x2 or u8x2 bit patterns
  1359. diff --git a/third_party/rust/packed_simd/src/api/into_bits/v256.rs b/third_party/rust/packed_simd/src/api/into_bits/v256.rs
  1360. --- a/third_party/rust/packed_simd/src/api/into_bits/v256.rs
  1361. +++ b/third_party/rust/packed_simd/src/api/into_bits/v256.rs
  1362. @@ -1,10 +1,10 @@
  1363. //! `FromBits` and `IntoBits` implementations for portable 256-bit wide vectors
  1364. -#![rustfmt::skip]
  1365. +#[rustfmt::skip]
  1366. #[allow(unused)] // wasm_bindgen_test
  1367. use crate::*;
  1368. impl_from_bits!(i8x32[test_v256]: u8x32, m8x32, i16x16, u16x16, m16x16, i32x8, u32x8, f32x8, m32x8, i64x4, u64x4, f64x4, m64x4, i128x2, u128x2, m128x2);
  1369. impl_from_bits!(u8x32[test_v256]: i8x32, m8x32, i16x16, u16x16, m16x16, i32x8, u32x8, f32x8, m32x8, i64x4, u64x4, f64x4, m64x4, i128x2, u128x2, m128x2);
  1370. impl_from_bits!(m8x32[test_v256]: m16x16, m32x8, m64x4, m128x2);
  1371. diff --git a/third_party/rust/packed_simd/src/api/into_bits/v32.rs b/third_party/rust/packed_simd/src/api/into_bits/v32.rs
  1372. --- a/third_party/rust/packed_simd/src/api/into_bits/v32.rs
  1373. +++ b/third_party/rust/packed_simd/src/api/into_bits/v32.rs
  1374. @@ -1,10 +1,10 @@
  1375. //! `FromBits` and `IntoBits` implementations for portable 32-bit wide vectors
  1376. -#![rustfmt::skip]
  1377. +#[rustfmt::skip]
  1378. #[allow(unused)] // wasm_bindgen_test
  1379. use crate::*;
  1380. impl_from_bits!(i8x4[test_v32]: u8x4, m8x4, i16x2, u16x2, m16x2);
  1381. impl_from_bits!(u8x4[test_v32]: i8x4, m8x4, i16x2, u16x2, m16x2);
  1382. impl_from_bits!(m8x4[test_v32]: m16x2);
  1383. diff --git a/third_party/rust/packed_simd/src/api/into_bits/v512.rs b/third_party/rust/packed_simd/src/api/into_bits/v512.rs
  1384. --- a/third_party/rust/packed_simd/src/api/into_bits/v512.rs
  1385. +++ b/third_party/rust/packed_simd/src/api/into_bits/v512.rs
  1386. @@ -1,10 +1,10 @@
  1387. //! `FromBits` and `IntoBits` implementations for portable 512-bit wide vectors
  1388. -#![rustfmt::skip]
  1389. +#[rustfmt::skip]
  1390. #[allow(unused)] // wasm_bindgen_test
  1391. use crate::*;
  1392. impl_from_bits!(i8x64[test_v512]: u8x64, m8x64, i16x32, u16x32, m16x32, i32x16, u32x16, f32x16, m32x16, i64x8, u64x8, f64x8, m64x8, i128x4, u128x4, m128x4);
  1393. impl_from_bits!(u8x64[test_v512]: i8x64, m8x64, i16x32, u16x32, m16x32, i32x16, u32x16, f32x16, m32x16, i64x8, u64x8, f64x8, m64x8, i128x4, u128x4, m128x4);
  1394. impl_from_bits!(m8x64[test_v512]: m16x32, m32x16, m64x8, m128x4);
  1395. diff --git a/third_party/rust/packed_simd/src/api/into_bits/v64.rs b/third_party/rust/packed_simd/src/api/into_bits/v64.rs
  1396. --- a/third_party/rust/packed_simd/src/api/into_bits/v64.rs
  1397. +++ b/third_party/rust/packed_simd/src/api/into_bits/v64.rs
  1398. @@ -1,10 +1,10 @@
  1399. //! `FromBits` and `IntoBits` implementations for portable 64-bit wide vectors
  1400. -#![rustfmt::skip]
  1401. +#[rustfmt::skip]
  1402. #[allow(unused)] // wasm_bindgen_test
  1403. use crate::*;
  1404. impl_from_bits!(i8x8[test_v64]: u8x8, m8x8, i16x4, u16x4, m16x4, i32x2, u32x2, f32x2, m32x2);
  1405. impl_from_bits!(u8x8[test_v64]: i8x8, m8x8, i16x4, u16x4, m16x4, i32x2, u32x2, f32x2, m32x2);
  1406. impl_from_bits!(m8x8[test_v64]: m16x4, m32x2);
  1407. diff --git a/third_party/rust/packed_simd/src/api/minimal/iuf.rs b/third_party/rust/packed_simd/src/api/minimal/iuf.rs
  1408. --- a/third_party/rust/packed_simd/src/api/minimal/iuf.rs
  1409. +++ b/third_party/rust/packed_simd/src/api/minimal/iuf.rs
  1410. @@ -48,17 +48,17 @@ macro_rules! impl_minimal_iuf {
  1411. #[inline]
  1412. pub fn extract(self, index: usize) -> $elem_ty {
  1413. assert!(index < $elem_count);
  1414. unsafe { self.extract_unchecked(index) }
  1415. }
  1416. /// Extracts the value at `index`.
  1417. ///
  1418. - /// # Precondition
  1419. + /// # Safety
  1420. ///
  1421. /// If `index >= Self::lanes()` the behavior is undefined.
  1422. #[inline]
  1423. pub unsafe fn extract_unchecked(self, index: usize) -> $elem_ty {
  1424. use crate::llvm::simd_extract;
  1425. let e: $ielem_ty = simd_extract(self.0, index as u32);
  1426. e as $elem_ty
  1427. }
  1428. @@ -75,17 +75,17 @@ macro_rules! impl_minimal_iuf {
  1429. ]
  1430. pub fn replace(self, index: usize, new_value: $elem_ty) -> Self {
  1431. assert!(index < $elem_count);
  1432. unsafe { self.replace_unchecked(index, new_value) }
  1433. }
  1434. /// Returns a new vector where the value at `index` is replaced by `new_value`.
  1435. ///
  1436. - /// # Precondition
  1437. + /// # Safety
  1438. ///
  1439. /// If `index >= Self::lanes()` the behavior is undefined.
  1440. #[inline]
  1441. #[must_use = "replace_unchecked does not modify the original value - \
  1442. it returns a new vector with the value at `index` \
  1443. replaced by `new_value`d"
  1444. ]
  1445. pub unsafe fn replace_unchecked(
  1446. @@ -96,16 +96,18 @@ macro_rules! impl_minimal_iuf {
  1447. use crate::llvm::simd_insert;
  1448. Simd(simd_insert(self.0, index as u32, new_value as $ielem_ty))
  1449. }
  1450. }
  1451. test_if!{
  1452. $test_tt:
  1453. paste::item! {
  1454. + // Comparisons use integer casts within mantissa^1 range.
  1455. + #[allow(clippy::float_cmp)]
  1456. pub mod [<$id _minimal>] {
  1457. use super::*;
  1458. #[cfg_attr(not(target_arch = "wasm32"), test)]
  1459. #[cfg_attr(target_arch = "wasm32", wasm_bindgen_test)]
  1460. fn minimal() {
  1461. // lanes:
  1462. assert_eq!($elem_count, $id::lanes());
  1463. diff --git a/third_party/rust/packed_simd/src/api/minimal/mask.rs b/third_party/rust/packed_simd/src/api/minimal/mask.rs
  1464. --- a/third_party/rust/packed_simd/src/api/minimal/mask.rs
  1465. +++ b/third_party/rust/packed_simd/src/api/minimal/mask.rs
  1466. @@ -53,16 +53,18 @@ macro_rules! impl_minimal_mask {
  1467. #[inline]
  1468. pub fn extract(self, index: usize) -> bool {
  1469. assert!(index < $elem_count);
  1470. unsafe { self.extract_unchecked(index) }
  1471. }
  1472. /// Extracts the value at `index`.
  1473. ///
  1474. + /// # Safety
  1475. + ///
  1476. /// If `index >= Self::lanes()` the behavior is undefined.
  1477. #[inline]
  1478. pub unsafe fn extract_unchecked(self, index: usize) -> bool {
  1479. use crate::llvm::simd_extract;
  1480. let x: $ielem_ty = simd_extract(self.0, index as u32);
  1481. x != 0
  1482. }
  1483. @@ -80,19 +82,19 @@ macro_rules! impl_minimal_mask {
  1484. pub fn replace(self, index: usize, new_value: bool) -> Self {
  1485. assert!(index < $elem_count);
  1486. unsafe { self.replace_unchecked(index, new_value) }
  1487. }
  1488. /// Returns a new vector where the value at `index` is replaced by
  1489. /// `new_value`.
  1490. ///
  1491. - /// # Panics
  1492. + /// # Safety
  1493. ///
  1494. - /// If `index >= Self::lanes()`.
  1495. + /// If `index >= Self::lanes()` the behavior is undefined.
  1496. #[inline]
  1497. #[must_use = "replace_unchecked does not modify the original value - \
  1498. it returns a new vector with the value at `index` \
  1499. replaced by `new_value`d"
  1500. ]
  1501. pub unsafe fn replace_unchecked(
  1502. self,
  1503. index: usize,
  1504. diff --git a/third_party/rust/packed_simd/src/api/minimal/ptr.rs b/third_party/rust/packed_simd/src/api/minimal/ptr.rs
  1505. --- a/third_party/rust/packed_simd/src/api/minimal/ptr.rs
  1506. +++ b/third_party/rust/packed_simd/src/api/minimal/ptr.rs
  1507. @@ -63,17 +63,17 @@ macro_rules! impl_minimal_p {
  1508. #[inline]
  1509. pub fn extract(self, index: usize) -> $elem_ty {
  1510. assert!(index < $elem_count);
  1511. unsafe { self.extract_unchecked(index) }
  1512. }
  1513. /// Extracts the value at `index`.
  1514. ///
  1515. - /// # Precondition
  1516. + /// # Safety
  1517. ///
  1518. /// If `index >= Self::lanes()` the behavior is undefined.
  1519. #[inline]
  1520. pub unsafe fn extract_unchecked(self, index: usize) -> $elem_ty {
  1521. use crate::llvm::simd_extract;
  1522. simd_extract(self.0, index as u32)
  1523. }
  1524. @@ -91,17 +91,17 @@ macro_rules! impl_minimal_p {
  1525. #[allow(clippy::not_unsafe_ptr_arg_deref)]
  1526. pub fn replace(self, index: usize, new_value: $elem_ty) -> Self {
  1527. assert!(index < $elem_count);
  1528. unsafe { self.replace_unchecked(index, new_value) }
  1529. }
  1530. /// Returns a new vector where the value at `index` is replaced by `new_value`.
  1531. ///
  1532. - /// # Precondition
  1533. + /// # Safety
  1534. ///
  1535. /// If `index >= Self::lanes()` the behavior is undefined.
  1536. #[inline]
  1537. #[must_use = "replace_unchecked does not modify the original value - \
  1538. it returns a new vector with the value at `index` \
  1539. replaced by `new_value`d"
  1540. ]
  1541. pub unsafe fn replace_unchecked(
  1542. @@ -210,17 +210,17 @@ macro_rules! impl_minimal_p {
  1543. impl<T> crate::fmt::Debug for $id<T> {
  1544. #[allow(clippy::missing_inline_in_public_items)]
  1545. fn fmt(&self, f: &mut crate::fmt::Formatter<'_>)
  1546. -> crate::fmt::Result {
  1547. write!(
  1548. f,
  1549. "{}<{}>(",
  1550. stringify!($id),
  1551. - unsafe { crate::intrinsics::type_name::<T>() }
  1552. + crate::intrinsics::type_name::<T>()
  1553. )?;
  1554. for i in 0..$elem_count {
  1555. if i > 0 {
  1556. write!(f, ", ")?;
  1557. }
  1558. self.extract(i).fmt(f)?;
  1559. }
  1560. write!(f, ")")
  1561. @@ -545,21 +545,17 @@ macro_rules! impl_minimal_p {
  1562. let values = [1_i32; $elem_count];
  1563. let mut vec: $id<i32> = Default::default();
  1564. let mut array = [
  1565. $id::<i32>::null().extract(0); $elem_count
  1566. ];
  1567. for i in 0..$elem_count {
  1568. - let ptr = unsafe {
  1569. - crate::mem::transmute(
  1570. - &values[i] as *const i32
  1571. - )
  1572. - };
  1573. + let ptr = &values[i] as *const i32 as *mut i32;
  1574. vec = vec.replace(i, ptr);
  1575. array[i] = ptr;
  1576. }
  1577. // FIXME: there is no impl of From<$id<T>> for [$elem_ty; N]
  1578. // let a0 = From::from(vec);
  1579. // assert_eq!(a0, array);
  1580. #[allow(unused_assignments)]
  1581. @@ -606,30 +602,30 @@ macro_rules! impl_minimal_p {
  1582. unsafe {
  1583. assert!(slice.len() >= $elem_count);
  1584. Self::from_slice_unaligned_unchecked(slice)
  1585. }
  1586. }
  1587. /// Instantiates a new vector with the values of the `slice`.
  1588. ///
  1589. - /// # Precondition
  1590. + /// # Safety
  1591. ///
  1592. /// If `slice.len() < Self::lanes()` or `&slice[0]` is not aligned
  1593. /// to an `align_of::<Self>()` boundary, the behavior is undefined.
  1594. #[inline]
  1595. pub unsafe fn from_slice_aligned_unchecked(slice: &[$elem_ty])
  1596. -> Self {
  1597. #[allow(clippy::cast_ptr_alignment)]
  1598. *(slice.get_unchecked(0) as *const $elem_ty as *const Self)
  1599. }
  1600. /// Instantiates a new vector with the values of the `slice`.
  1601. ///
  1602. - /// # Precondition
  1603. + /// # Safety
  1604. ///
  1605. /// If `slice.len() < Self::lanes()` the behavior is undefined.
  1606. #[inline]
  1607. pub unsafe fn from_slice_unaligned_unchecked(
  1608. slice: &[$elem_ty],
  1609. ) -> Self {
  1610. use crate::mem::size_of;
  1611. let target_ptr =
  1612. @@ -822,33 +818,33 @@ macro_rules! impl_minimal_p {
  1613. unsafe {
  1614. assert!(slice.len() >= $elem_count);
  1615. self.write_to_slice_unaligned_unchecked(slice);
  1616. }
  1617. }
  1618. /// Writes the values of the vector to the `slice`.
  1619. ///
  1620. - /// # Precondition
  1621. + /// # Safety
  1622. ///
  1623. /// If `slice.len() < Self::lanes()` or `&slice[0]` is not
  1624. /// aligned to an `align_of::<Self>()` boundary, the behavior is
  1625. /// undefined.
  1626. #[inline]
  1627. pub unsafe fn write_to_slice_aligned_unchecked(
  1628. self, slice: &mut [$elem_ty],
  1629. ) {
  1630. #[allow(clippy::cast_ptr_alignment)]
  1631. *(slice.get_unchecked_mut(0) as *mut $elem_ty as *mut Self) =
  1632. self;
  1633. }
  1634. /// Writes the values of the vector to the `slice`.
  1635. ///
  1636. - /// # Precondition
  1637. + /// # Safety
  1638. ///
  1639. /// If `slice.len() < Self::lanes()` the behavior is undefined.
  1640. #[inline]
  1641. pub unsafe fn write_to_slice_unaligned_unchecked(
  1642. self, slice: &mut [$elem_ty],
  1643. ) {
  1644. let target_ptr =
  1645. slice.get_unchecked_mut(0) as *mut $elem_ty as *mut u8;
  1646. @@ -1020,21 +1016,17 @@ macro_rules! impl_minimal_p {
  1647. let mut vec: $id<i32> = Default::default();
  1648. let mut array = [
  1649. $id::<i32>::null().extract(0);
  1650. $elem_count
  1651. ];
  1652. for i in 0..$elem_count {
  1653. - let ptr = unsafe {
  1654. - crate::mem::transmute(
  1655. - &values[i] as *const i32
  1656. - )
  1657. - };
  1658. + let ptr = &values[i] as *const i32 as *mut i32;
  1659. vec = vec.replace(i, ptr);
  1660. array[i] = ptr;
  1661. }
  1662. #[allow(deprecated)]
  1663. let mut a_hash = SipHasher13::new();
  1664. let mut v_hash = a_hash.clone();
  1665. array.hash(&mut a_hash);
  1666. @@ -1146,17 +1138,17 @@ macro_rules! impl_minimal_p {
  1667. /// allocation. For instance, no known 64-bit platform can ever
  1668. /// serve a request for 263 bytes due to page-table limitations or
  1669. /// splitting the address space. However, some 32-bit and 16-bit
  1670. /// platforms may successfully serve a request for more than
  1671. /// `isize::MAX` bytes with things like Physical Address Extension.
  1672. /// As such, memory acquired directly from allocators or memory
  1673. /// mapped files may be too large to handle with this function.
  1674. ///
  1675. - /// Consider using wrapping_offset_from instead if these constraints
  1676. + /// Consider using `wrapping_offset_from` instead if these constraints
  1677. /// are difficult to satisfy. The only advantage of this method is
  1678. /// that it enables more aggressive compiler optimizations.
  1679. #[inline]
  1680. pub unsafe fn offset_from(self, origin: Self) -> $isize_ty {
  1681. // FIXME: should use LLVM's `sub nsw nuw`.
  1682. self.wrapping_offset_from(origin)
  1683. }
  1684. diff --git a/third_party/rust/packed_simd/src/api/ops/vector_float_min_max.rs b/third_party/rust/packed_simd/src/api/ops/vector_float_min_max.rs
  1685. --- a/third_party/rust/packed_simd/src/api/ops/vector_float_min_max.rs
  1686. +++ b/third_party/rust/packed_simd/src/api/ops/vector_float_min_max.rs
  1687. @@ -21,16 +21,21 @@ macro_rules! impl_ops_vector_float_min_m
  1688. pub fn max(self, x: Self) -> Self {
  1689. use crate::llvm::simd_fmax;
  1690. unsafe { Simd(simd_fmax(self.0, x.0)) }
  1691. }
  1692. }
  1693. test_if!{
  1694. $test_tt:
  1695. paste::item! {
  1696. + #[cfg(not(any(
  1697. + // FIXME: https://github.com/rust-lang-nursery/packed_simd/issues/223
  1698. + all(target_arch = "mips", target_endian = "big"),
  1699. + target_arch = "mips64",
  1700. + )))]
  1701. pub mod [<$id _ops_vector_min_max>] {
  1702. use super::*;
  1703. #[cfg_attr(not(target_arch = "wasm32"), test)] #[cfg_attr(target_arch = "wasm32", wasm_bindgen_test)]
  1704. fn min_max() {
  1705. let n = crate::$elem_ty::NAN;
  1706. let o = $id::splat(1. as $elem_ty);
  1707. let t = $id::splat(2. as $elem_ty);
  1708. diff --git a/third_party/rust/packed_simd/src/api/ptr/gather_scatter.rs b/third_party/rust/packed_simd/src/api/ptr/gather_scatter.rs
  1709. --- a/third_party/rust/packed_simd/src/api/ptr/gather_scatter.rs
  1710. +++ b/third_party/rust/packed_simd/src/api/ptr/gather_scatter.rs
  1711. @@ -44,19 +44,19 @@ macro_rules! impl_ptr_read {
  1712. let mut v = [0_i32; $elem_count];
  1713. for i in 0..$elem_count {
  1714. v[i] = i as i32;
  1715. }
  1716. let mut ptr = $id::<i32>::null();
  1717. for i in 0..$elem_count {
  1718. - ptr = ptr.replace(i, unsafe {
  1719. - crate::mem::transmute(&v[i] as *const i32)
  1720. - });
  1721. + ptr = ptr.replace(i,
  1722. + &v[i] as *const i32 as *mut i32
  1723. + );
  1724. }
  1725. // all mask elements are true:
  1726. let mask = $mask_ty::splat(true);
  1727. let def = Simd::<[i32; $elem_count]>::splat(42_i32);
  1728. let r: Simd<[i32; $elem_count]> = unsafe {
  1729. ptr.read(mask, def)
  1730. };
  1731. @@ -130,42 +130,18 @@ macro_rules! impl_ptr_write {
  1732. #[inline]
  1733. pub unsafe fn write<M>(
  1734. self, mask: Simd<[M; $elem_count]>,
  1735. value: Simd<[T; $elem_count]>,
  1736. ) where
  1737. M: sealed::Mask,
  1738. [M; $elem_count]: sealed::SimdArray,
  1739. {
  1740. - // FIXME:
  1741. - // https://github.com/rust-lang-nursery/packed_simd/issues/85
  1742. - #[cfg(not(target_arch = "mips"))]
  1743. - {
  1744. - use crate::llvm::simd_scatter;
  1745. - simd_scatter(value.0, self.0, mask.0)
  1746. - }
  1747. - #[cfg(target_arch = "mips")]
  1748. - {
  1749. - let m_ptr =
  1750. - &mask as *const Simd<[M; $elem_count]> as *const M;
  1751. - for i in 0..$elem_count {
  1752. - let m = ptr::read(m_ptr.add(i));
  1753. - if m.test() {
  1754. - let t_ptr = &self
  1755. - as *const Simd<[*mut T; $elem_count]>
  1756. - as *mut *mut T;
  1757. - let v_ptr = &value as *const Simd<[T; $elem_count]>
  1758. - as *const T;
  1759. - ptr::write(
  1760. - ptr::read(t_ptr.add(i)),
  1761. - ptr::read(v_ptr.add(i)),
  1762. - );
  1763. - }
  1764. - }
  1765. - }
  1766. + use crate::llvm::simd_scatter;
  1767. + simd_scatter(value.0, self.0, mask.0)
  1768. }
  1769. }
  1770. test_if! {
  1771. $test_tt:
  1772. paste::item! {
  1773. mod [<$id _write>] {
  1774. use super::*;
  1775. @@ -180,17 +156,17 @@ macro_rules! impl_ptr_write {
  1776. for i in 0..$elem_count {
  1777. arr[i] = i as i32;
  1778. }
  1779. // arr = [0, 1, 2, ...]
  1780. let mut ptr = $id::<i32>::null();
  1781. for i in 0..$elem_count {
  1782. ptr = ptr.replace(i, unsafe {
  1783. - crate::mem::transmute(arr.as_ptr().add(i))
  1784. + arr.as_ptr().add(i) as *mut i32
  1785. });
  1786. }
  1787. // ptr = [&arr[0], &arr[1], ...]
  1788. // write `fourty_two` to all elements of `v`
  1789. {
  1790. let backup = arr;
  1791. unsafe {
  1792. diff --git a/third_party/rust/packed_simd/src/api/reductions/float_arithmetic.rs b/third_party/rust/packed_simd/src/api/reductions/float_arithmetic.rs
  1793. --- a/third_party/rust/packed_simd/src/api/reductions/float_arithmetic.rs
  1794. +++ b/third_party/rust/packed_simd/src/api/reductions/float_arithmetic.rs
  1795. @@ -88,16 +88,18 @@ macro_rules! impl_reduction_float_arithm
  1796. fn product<I: Iterator<Item = &'a $id>>(iter: I) -> $id {
  1797. iter.fold($id::splat(1.), |a, b| crate::ops::Mul::mul(a, *b))
  1798. }
  1799. }
  1800. test_if! {
  1801. $test_tt:
  1802. paste::item! {
  1803. + // Comparisons use integer casts within mantissa^1 range.
  1804. + #[allow(clippy::float_cmp)]
  1805. pub mod [<$id _reduction_float_arith>] {
  1806. use super::*;
  1807. fn alternating(x: usize) -> $id {
  1808. let mut v = $id::splat(1 as $elem_ty);
  1809. for i in 0..$id::lanes() {
  1810. if i % x == 0 {
  1811. v = v.replace(i, 2 as $elem_ty);
  1812. }
  1813. @@ -220,17 +222,17 @@ macro_rules! impl_reduction_float_arithm
  1814. }
  1815. let mut start = crate::$elem_ty::EPSILON;
  1816. let mut scalar_reduction = 0. as $elem_ty;
  1817. let mut v = $id::splat(0. as $elem_ty);
  1818. for i in 0..$id::lanes() {
  1819. let c = if i % 2 == 0 { 1e3 } else { -1. };
  1820. - start *= 3.14 * c;
  1821. + start *= ::core::$elem_ty::consts::PI * c;
  1822. scalar_reduction += start;
  1823. v = v.replace(i, start);
  1824. }
  1825. let simd_reduction = v.sum();
  1826. let mut a = [0. as $elem_ty; $id::lanes()];
  1827. v.write_to_slice_unaligned(&mut a);
  1828. let tree_reduction = tree_reduce_sum(&a);
  1829. @@ -252,16 +254,17 @@ macro_rules! impl_reduction_float_arithm
  1830. scalar_reduction
  1831. );
  1832. }
  1833. #[cfg_attr(not(target_arch = "wasm32"), test)]
  1834. #[cfg_attr(target_arch = "wasm32", wasm_bindgen_test)]
  1835. #[allow(unused, dead_code)]
  1836. fn product_roundoff() {
  1837. + use ::core::convert::TryInto;
  1838. // Performs a tree-reduction
  1839. fn tree_reduce_product(a: &[$elem_ty]) -> $elem_ty {
  1840. assert!(!a.is_empty());
  1841. if a.len() == 1 {
  1842. a[0]
  1843. } else if a.len() == 2 {
  1844. a[0] * a[1]
  1845. } else {
  1846. @@ -273,35 +276,37 @@ macro_rules! impl_reduction_float_arithm
  1847. }
  1848. let mut start = crate::$elem_ty::EPSILON;
  1849. let mut scalar_reduction = 1. as $elem_ty;
  1850. let mut v = $id::splat(0. as $elem_ty);
  1851. for i in 0..$id::lanes() {
  1852. let c = if i % 2 == 0 { 1e3 } else { -1. };
  1853. - start *= 3.14 * c;
  1854. + start *= ::core::$elem_ty::consts::PI * c;
  1855. scalar_reduction *= start;
  1856. v = v.replace(i, start);
  1857. }
  1858. let simd_reduction = v.product();
  1859. let mut a = [0. as $elem_ty; $id::lanes()];
  1860. v.write_to_slice_unaligned(&mut a);
  1861. let tree_reduction = tree_reduce_product(&a);
  1862. - // tolerate 1 ULP difference:
  1863. + // FIXME: Too imprecise, even only for product(f32x8).
  1864. + // Figure out how to narrow this down.
  1865. + let ulp_limit = $id::lanes() / 2;
  1866. let red_bits = simd_reduction.to_bits();
  1867. let tree_bits = tree_reduction.to_bits();
  1868. assert!(
  1869. if red_bits > tree_bits {
  1870. red_bits - tree_bits
  1871. } else {
  1872. tree_bits - red_bits
  1873. - } < 2,
  1874. + } < ulp_limit.try_into().unwrap(),
  1875. "vector: {:?} | simd_reduction: {:?} | \
  1876. tree_reduction: {} | scalar_reduction: {}",
  1877. v,
  1878. simd_reduction,
  1879. tree_reduction,
  1880. scalar_reduction
  1881. );
  1882. }
  1883. diff --git a/third_party/rust/packed_simd/src/api/reductions/min_max.rs b/third_party/rust/packed_simd/src/api/reductions/min_max.rs
  1884. --- a/third_party/rust/packed_simd/src/api/reductions/min_max.rs
  1885. +++ b/third_party/rust/packed_simd/src/api/reductions/min_max.rs
  1886. @@ -71,16 +71,18 @@ macro_rules! impl_reduction_min_max {
  1887. x = x.min(self.extract(i));
  1888. }
  1889. x
  1890. }
  1891. }
  1892. }
  1893. test_if! {$test_tt:
  1894. paste::item! {
  1895. + // Comparisons use integer casts within mantissa^1 range.
  1896. + #[allow(clippy::float_cmp)]
  1897. pub mod [<$id _reduction_min_max>] {
  1898. use super::*;
  1899. #[cfg_attr(not(target_arch = "wasm32"), test)]
  1900. #[cfg_attr(target_arch = "wasm32", wasm_bindgen_test)]
  1901. pub fn max_element() {
  1902. let v = $id::splat(0 as $elem_ty);
  1903. assert_eq!(v.max_element(), 0 as $elem_ty);
  1904. if $id::lanes() > 1 {
  1905. @@ -119,16 +121,18 @@ macro_rules! impl_reduction_min_max {
  1906. };
  1907. }
  1908. macro_rules! test_reduction_float_min_max {
  1909. ([$elem_ty:ident; $elem_count:expr]: $id:ident | $test_tt:tt) => {
  1910. test_if!{
  1911. $test_tt:
  1912. paste::item! {
  1913. + // Comparisons use integer casts within mantissa^1 range.
  1914. + #[allow(clippy::float_cmp)]
  1915. pub mod [<$id _reduction_min_max_nan>] {
  1916. use super::*;
  1917. #[cfg_attr(not(target_arch = "wasm32"), test)]
  1918. #[cfg_attr(target_arch = "wasm32", wasm_bindgen_test)]
  1919. fn min_element_test() {
  1920. let n = crate::$elem_ty::NAN;
  1921. assert_eq!(n.min(-3.), -3.);
  1922. diff --git a/third_party/rust/packed_simd/src/api/slice/from_slice.rs b/third_party/rust/packed_simd/src/api/slice/from_slice.rs
  1923. --- a/third_party/rust/packed_simd/src/api/slice/from_slice.rs
  1924. +++ b/third_party/rust/packed_simd/src/api/slice/from_slice.rs
  1925. @@ -33,17 +33,17 @@ macro_rules! impl_slice_from_slice {
  1926. unsafe {
  1927. assert!(slice.len() >= $elem_count);
  1928. Self::from_slice_unaligned_unchecked(slice)
  1929. }
  1930. }
  1931. /// Instantiates a new vector with the values of the `slice`.
  1932. ///
  1933. - /// # Precondition
  1934. + /// # Safety
  1935. ///
  1936. /// If `slice.len() < Self::lanes()` or `&slice[0]` is not aligned
  1937. /// to an `align_of::<Self>()` boundary, the behavior is undefined.
  1938. #[inline]
  1939. pub unsafe fn from_slice_aligned_unchecked(
  1940. slice: &[$elem_ty],
  1941. ) -> Self {
  1942. debug_assert!(slice.len() >= $elem_count);
  1943. @@ -54,17 +54,17 @@ macro_rules! impl_slice_from_slice {
  1944. );
  1945. #[allow(clippy::cast_ptr_alignment)]
  1946. *(target_ptr as *const Self)
  1947. }
  1948. /// Instantiates a new vector with the values of the `slice`.
  1949. ///
  1950. - /// # Precondition
  1951. + /// # Safety
  1952. ///
  1953. /// If `slice.len() < Self::lanes()` the behavior is undefined.
  1954. #[inline]
  1955. pub unsafe fn from_slice_unaligned_unchecked(
  1956. slice: &[$elem_ty],
  1957. ) -> Self {
  1958. use crate::mem::size_of;
  1959. debug_assert!(slice.len() >= $elem_count);
  1960. @@ -79,16 +79,18 @@ macro_rules! impl_slice_from_slice {
  1961. );
  1962. x
  1963. }
  1964. }
  1965. test_if! {
  1966. $test_tt:
  1967. paste::item! {
  1968. + // Comparisons use integer casts within mantissa^1 range.
  1969. + #[allow(clippy::float_cmp)]
  1970. pub mod [<$id _slice_from_slice>] {
  1971. use super::*;
  1972. use crate::iter::Iterator;
  1973. #[cfg_attr(not(target_arch = "wasm32"), test)]
  1974. #[cfg_attr(target_arch = "wasm32", wasm_bindgen_test)]
  1975. fn from_slice_unaligned() {
  1976. let mut unaligned = [42 as $elem_ty; $id::lanes() + 1];
  1977. diff --git a/third_party/rust/packed_simd/src/api/slice/write_to_slice.rs b/third_party/rust/packed_simd/src/api/slice/write_to_slice.rs
  1978. --- a/third_party/rust/packed_simd/src/api/slice/write_to_slice.rs
  1979. +++ b/third_party/rust/packed_simd/src/api/slice/write_to_slice.rs
  1980. @@ -34,17 +34,17 @@ macro_rules! impl_slice_write_to_slice {
  1981. unsafe {
  1982. assert!(slice.len() >= $elem_count);
  1983. self.write_to_slice_unaligned_unchecked(slice);
  1984. }
  1985. }
  1986. /// Writes the values of the vector to the `slice`.
  1987. ///
  1988. - /// # Precondition
  1989. + /// # Safety
  1990. ///
  1991. /// If `slice.len() < Self::lanes()` or `&slice[0]` is not
  1992. /// aligned to an `align_of::<Self>()` boundary, the behavior is
  1993. /// undefined.
  1994. #[inline]
  1995. pub unsafe fn write_to_slice_aligned_unchecked(
  1996. self, slice: &mut [$elem_ty],
  1997. ) {
  1998. @@ -59,17 +59,17 @@ macro_rules! impl_slice_write_to_slice {
  1999. #[allow(clippy::cast_ptr_alignment)]
  2000. #[allow(clippy::cast_ptr_alignment)]
  2001. #[allow(clippy::cast_ptr_alignment)]
  2002. *(target_ptr as *mut Self) = self;
  2003. }
  2004. /// Writes the values of the vector to the `slice`.
  2005. ///
  2006. - /// # Precondition
  2007. + /// # Safety
  2008. ///
  2009. /// If `slice.len() < Self::lanes()` the behavior is undefined.
  2010. #[inline]
  2011. pub unsafe fn write_to_slice_unaligned_unchecked(
  2012. self, slice: &mut [$elem_ty],
  2013. ) {
  2014. debug_assert!(slice.len() >= $elem_count);
  2015. let target_ptr =
  2016. @@ -81,16 +81,18 @@ macro_rules! impl_slice_write_to_slice {
  2017. crate::mem::size_of::<Self>(),
  2018. );
  2019. }
  2020. }
  2021. test_if! {
  2022. $test_tt:
  2023. paste::item! {
  2024. + // Comparisons use integer casts within mantissa^1 range.
  2025. + #[allow(clippy::float_cmp)]
  2026. pub mod [<$id _slice_write_to_slice>] {
  2027. use super::*;
  2028. use crate::iter::Iterator;
  2029. #[cfg_attr(not(target_arch = "wasm32"), test)]
  2030. #[cfg_attr(target_arch = "wasm32", wasm_bindgen_test)]
  2031. fn write_to_slice_unaligned() {
  2032. let mut unaligned = [0 as $elem_ty; $id::lanes() + 1];
  2033. diff --git a/third_party/rust/packed_simd/src/codegen.rs b/third_party/rust/packed_simd/src/codegen.rs
  2034. --- a/third_party/rust/packed_simd/src/codegen.rs
  2035. +++ b/third_party/rust/packed_simd/src/codegen.rs
  2036. @@ -11,23 +11,26 @@ crate mod swap_bytes;
  2037. macro_rules! impl_simd_array {
  2038. ([$elem_ty:ident; $elem_count:expr]:
  2039. $tuple_id:ident | $($elem_tys:ident),*) => {
  2040. #[derive(Copy, Clone)]
  2041. #[repr(simd)]
  2042. pub struct $tuple_id($(crate $elem_tys),*);
  2043. //^^^^^^^ leaked through SimdArray
  2044. + impl crate::sealed::Seal for [$elem_ty; $elem_count] {}
  2045. +
  2046. impl crate::sealed::SimdArray for [$elem_ty; $elem_count] {
  2047. type Tuple = $tuple_id;
  2048. type T = $elem_ty;
  2049. const N: usize = $elem_count;
  2050. type NT = [u32; $elem_count];
  2051. }
  2052. + impl crate::sealed::Seal for $tuple_id {}
  2053. impl crate::sealed::Simd for $tuple_id {
  2054. type Element = $elem_ty;
  2055. const LANES: usize = $elem_count;
  2056. type LanesType = [u32; $elem_count];
  2057. }
  2058. }
  2059. }
  2060. diff --git a/third_party/rust/packed_simd/src/codegen/bit_manip.rs b/third_party/rust/packed_simd/src/codegen/bit_manip.rs
  2061. --- a/third_party/rust/packed_simd/src/codegen/bit_manip.rs
  2062. +++ b/third_party/rust/packed_simd/src/codegen/bit_manip.rs
  2063. @@ -1,10 +1,10 @@
  2064. //! LLVM bit manipulation intrinsics.
  2065. -#![rustfmt::skip]
  2066. +#[rustfmt::skip]
  2067. use crate::*;
  2068. #[allow(improper_ctypes, dead_code)]
  2069. extern "C" {
  2070. #[link_name = "llvm.ctlz.v2i8"]
  2071. fn ctlz_u8x2(x: u8x2, is_zero_undef: bool) -> u8x2;
  2072. #[link_name = "llvm.ctlz.v4i8"]
  2073. diff --git a/third_party/rust/packed_simd/src/codegen/llvm.rs b/third_party/rust/packed_simd/src/codegen/llvm.rs
  2074. --- a/third_party/rust/packed_simd/src/codegen/llvm.rs
  2075. +++ b/third_party/rust/packed_simd/src/codegen/llvm.rs
  2076. @@ -5,41 +5,47 @@ use crate::sealed::Shuffle;
  2077. #[allow(unused_imports)] // FIXME: spurious warning?
  2078. use crate::sealed::Simd;
  2079. // Shuffle intrinsics: expanded in users' crates, therefore public.
  2080. extern "platform-intrinsic" {
  2081. // FIXME: Passing this intrinsics an `idx` array with an index that is
  2082. // out-of-bounds will produce a monomorphization-time error.
  2083. // https://github.com/rust-lang-nursery/packed_simd/issues/21
  2084. + #[rustc_args_required_const(2)]
  2085. pub fn simd_shuffle2<T, U>(x: T, y: T, idx: [u32; 2]) -> U
  2086. where
  2087. T: Simd,
  2088. <T as Simd>::Element: Shuffle<[u32; 2], Output = U>;
  2089. + #[rustc_args_required_const(2)]
  2090. pub fn simd_shuffle4<T, U>(x: T, y: T, idx: [u32; 4]) -> U
  2091. where
  2092. T: Simd,
  2093. <T as Simd>::Element: Shuffle<[u32; 4], Output = U>;
  2094. + #[rustc_args_required_const(2)]
  2095. pub fn simd_shuffle8<T, U>(x: T, y: T, idx: [u32; 8]) -> U
  2096. where
  2097. T: Simd,
  2098. <T as Simd>::Element: Shuffle<[u32; 8], Output = U>;
  2099. + #[rustc_args_required_const(2)]
  2100. pub fn simd_shuffle16<T, U>(x: T, y: T, idx: [u32; 16]) -> U
  2101. where
  2102. T: Simd,
  2103. <T as Simd>::Element: Shuffle<[u32; 16], Output = U>;
  2104. + #[rustc_args_required_const(2)]
  2105. pub fn simd_shuffle32<T, U>(x: T, y: T, idx: [u32; 32]) -> U
  2106. where
  2107. T: Simd,
  2108. <T as Simd>::Element: Shuffle<[u32; 32], Output = U>;
  2109. + #[rustc_args_required_const(2)]
  2110. pub fn simd_shuffle64<T, U>(x: T, y: T, idx: [u32; 64]) -> U
  2111. where
  2112. T: Simd,
  2113. <T as Simd>::Element: Shuffle<[u32; 64], Output = U>;
  2114. }
  2115. pub use self::simd_shuffle16 as __shuffle_vector16;
  2116. pub use self::simd_shuffle2 as __shuffle_vector2;
  2117. @@ -91,9 +97,11 @@ extern "platform-intrinsic" {
  2118. crate fn simd_fmin<T>(a: T, b: T) -> T;
  2119. crate fn simd_fmax<T>(a: T, b: T) -> T;
  2120. crate fn simd_fsqrt<T>(a: T) -> T;
  2121. crate fn simd_fma<T>(a: T, b: T, c: T) -> T;
  2122. crate fn simd_gather<T, P, M>(value: T, pointers: P, mask: M) -> T;
  2123. crate fn simd_scatter<T, P, M>(value: T, pointers: P, mask: M);
  2124. +
  2125. + crate fn simd_bitmask<T, U>(value: T) -> U;
  2126. }
  2127. diff --git a/third_party/rust/packed_simd/src/codegen/reductions/mask/x86.rs b/third_party/rust/packed_simd/src/codegen/reductions/mask/x86.rs
  2128. --- a/third_party/rust/packed_simd/src/codegen/reductions/mask/x86.rs
  2129. +++ b/third_party/rust/packed_simd/src/codegen/reductions/mask/x86.rs
  2130. @@ -14,23 +14,17 @@ mod avx;
  2131. #[cfg(target_feature = "avx2")]
  2132. #[macro_use]
  2133. mod avx2;
  2134. /// x86 64-bit m8x8 implementation
  2135. macro_rules! x86_m8x8_impl {
  2136. ($id:ident) => {
  2137. - cfg_if! {
  2138. - if #[cfg(all(target_arch = "x86_64", target_feature = "sse"))] {
  2139. - x86_m8x8_sse_impl!($id);
  2140. - } else {
  2141. - fallback_impl!($id);
  2142. - }
  2143. - }
  2144. + fallback_impl!($id);
  2145. };
  2146. }
  2147. /// x86 128-bit m8x16 implementation
  2148. macro_rules! x86_m8x16_impl {
  2149. ($id:ident) => {
  2150. cfg_if! {
  2151. if #[cfg(target_feature = "sse2")] {
  2152. diff --git a/third_party/rust/packed_simd/src/codegen/reductions/mask/x86/sse.rs b/third_party/rust/packed_simd/src/codegen/reductions/mask/x86/sse.rs
  2153. --- a/third_party/rust/packed_simd/src/codegen/reductions/mask/x86/sse.rs
  2154. +++ b/third_party/rust/packed_simd/src/codegen/reductions/mask/x86/sse.rs
  2155. @@ -29,40 +29,8 @@ macro_rules! x86_m32x4_sse_impl {
  2156. #[cfg(target_arch = "x86_64")]
  2157. use crate::arch::x86_64::_mm_movemask_ps;
  2158. _mm_movemask_ps(crate::mem::transmute(self)) != 0
  2159. }
  2160. }
  2161. };
  2162. }
  2163. -
  2164. -macro_rules! x86_m8x8_sse_impl {
  2165. - ($id:ident) => {
  2166. - impl All for $id {
  2167. - #[inline]
  2168. - #[target_feature(enable = "sse")]
  2169. - unsafe fn all(self) -> bool {
  2170. - #[cfg(target_arch = "x86")]
  2171. - use crate::arch::x86::_mm_movemask_pi8;
  2172. - #[cfg(target_arch = "x86_64")]
  2173. - use crate::arch::x86_64::_mm_movemask_pi8;
  2174. - // _mm_movemask_pi8(a) creates an 8bit mask containing the most
  2175. - // significant bit of each byte of `a`. If all bits are set,
  2176. - // then all 8 lanes of the mask are true.
  2177. - _mm_movemask_pi8(crate::mem::transmute(self))
  2178. - == u8::max_value() as i32
  2179. - }
  2180. - }
  2181. - impl Any for $id {
  2182. - #[inline]
  2183. - #[target_feature(enable = "sse")]
  2184. - unsafe fn any(self) -> bool {
  2185. - #[cfg(target_arch = "x86")]
  2186. - use crate::arch::x86::_mm_movemask_pi8;
  2187. - #[cfg(target_arch = "x86_64")]
  2188. - use crate::arch::x86_64::_mm_movemask_pi8;
  2189. -
  2190. - _mm_movemask_pi8(crate::mem::transmute(self)) != 0
  2191. - }
  2192. - }
  2193. - };
  2194. -}
  2195. diff --git a/third_party/rust/packed_simd/src/codegen/shuffle.rs b/third_party/rust/packed_simd/src/codegen/shuffle.rs
  2196. --- a/third_party/rust/packed_simd/src/codegen/shuffle.rs
  2197. +++ b/third_party/rust/packed_simd/src/codegen/shuffle.rs
  2198. @@ -1,302 +1,150 @@
  2199. //! Implementations of the `ShuffleResult` trait for the different numbers of
  2200. //! lanes and vector element types.
  2201. use crate::masks::*;
  2202. -use crate::sealed::Shuffle;
  2203. -
  2204. -impl Shuffle<[u32; 2]> for i8 {
  2205. - type Output = crate::codegen::i8x2;
  2206. -}
  2207. -impl Shuffle<[u32; 4]> for i8 {
  2208. - type Output = crate::codegen::i8x4;
  2209. -}
  2210. -impl Shuffle<[u32; 8]> for i8 {
  2211. - type Output = crate::codegen::i8x8;
  2212. -}
  2213. -impl Shuffle<[u32; 16]> for i8 {
  2214. - type Output = crate::codegen::i8x16;
  2215. -}
  2216. -impl Shuffle<[u32; 32]> for i8 {
  2217. - type Output = crate::codegen::i8x32;
  2218. -}
  2219. -impl Shuffle<[u32; 64]> for i8 {
  2220. - type Output = crate::codegen::i8x64;
  2221. -}
  2222. -
  2223. -impl Shuffle<[u32; 2]> for u8 {
  2224. - type Output = crate::codegen::u8x2;
  2225. -}
  2226. -impl Shuffle<[u32; 4]> for u8 {
  2227. - type Output = crate::codegen::u8x4;
  2228. -}
  2229. -impl Shuffle<[u32; 8]> for u8 {
  2230. - type Output = crate::codegen::u8x8;
  2231. -}
  2232. -impl Shuffle<[u32; 16]> for u8 {
  2233. - type Output = crate::codegen::u8x16;
  2234. -}
  2235. -impl Shuffle<[u32; 32]> for u8 {
  2236. - type Output = crate::codegen::u8x32;
  2237. -}
  2238. -impl Shuffle<[u32; 64]> for u8 {
  2239. - type Output = crate::codegen::u8x64;
  2240. -}
  2241. -
  2242. -impl Shuffle<[u32; 2]> for m8 {
  2243. - type Output = crate::codegen::m8x2;
  2244. -}
  2245. -impl Shuffle<[u32; 4]> for m8 {
  2246. - type Output = crate::codegen::m8x4;
  2247. -}
  2248. -impl Shuffle<[u32; 8]> for m8 {
  2249. - type Output = crate::codegen::m8x8;
  2250. -}
  2251. -impl Shuffle<[u32; 16]> for m8 {
  2252. - type Output = crate::codegen::m8x16;
  2253. -}
  2254. -impl Shuffle<[u32; 32]> for m8 {
  2255. - type Output = crate::codegen::m8x32;
  2256. -}
  2257. -impl Shuffle<[u32; 64]> for m8 {
  2258. - type Output = crate::codegen::m8x64;
  2259. -}
  2260. +use crate::sealed::{Shuffle, Seal};
  2261. -impl Shuffle<[u32; 2]> for i16 {
  2262. - type Output = crate::codegen::i16x2;
  2263. -}
  2264. -impl Shuffle<[u32; 4]> for i16 {
  2265. - type Output = crate::codegen::i16x4;
  2266. -}
  2267. -impl Shuffle<[u32; 8]> for i16 {
  2268. - type Output = crate::codegen::i16x8;
  2269. -}
  2270. -impl Shuffle<[u32; 16]> for i16 {
  2271. - type Output = crate::codegen::i16x16;
  2272. -}
  2273. -impl Shuffle<[u32; 32]> for i16 {
  2274. - type Output = crate::codegen::i16x32;
  2275. -}
  2276. -
  2277. -impl Shuffle<[u32; 2]> for u16 {
  2278. - type Output = crate::codegen::u16x2;
  2279. -}
  2280. -impl Shuffle<[u32; 4]> for u16 {
  2281. - type Output = crate::codegen::u16x4;
  2282. -}
  2283. -impl Shuffle<[u32; 8]> for u16 {
  2284. - type Output = crate::codegen::u16x8;
  2285. -}
  2286. -impl Shuffle<[u32; 16]> for u16 {
  2287. - type Output = crate::codegen::u16x16;
  2288. -}
  2289. -impl Shuffle<[u32; 32]> for u16 {
  2290. - type Output = crate::codegen::u16x32;
  2291. -}
  2292. -
  2293. -impl Shuffle<[u32; 2]> for m16 {
  2294. - type Output = crate::codegen::m16x2;
  2295. -}
  2296. -impl Shuffle<[u32; 4]> for m16 {
  2297. - type Output = crate::codegen::m16x4;
  2298. -}
  2299. -impl Shuffle<[u32; 8]> for m16 {
  2300. - type Output = crate::codegen::m16x8;
  2301. -}
  2302. -impl Shuffle<[u32; 16]> for m16 {
  2303. - type Output = crate::codegen::m16x16;
  2304. -}
  2305. -impl Shuffle<[u32; 32]> for m16 {
  2306. - type Output = crate::codegen::m16x32;
  2307. -}
  2308. -
  2309. -impl Shuffle<[u32; 2]> for i32 {
  2310. - type Output = crate::codegen::i32x2;
  2311. -}
  2312. -impl Shuffle<[u32; 4]> for i32 {
  2313. - type Output = crate::codegen::i32x4;
  2314. -}
  2315. -impl Shuffle<[u32; 8]> for i32 {
  2316. - type Output = crate::codegen::i32x8;
  2317. -}
  2318. -impl Shuffle<[u32; 16]> for i32 {
  2319. - type Output = crate::codegen::i32x16;
  2320. +macro_rules! impl_shuffle {
  2321. + ($array:ty, $base:ty, $out:ty) => {
  2322. + impl Seal<$array> for $base {}
  2323. + impl Shuffle<$array> for $base {
  2324. + type Output = $out;
  2325. + }
  2326. + }
  2327. }
  2328. -impl Shuffle<[u32; 2]> for u32 {
  2329. - type Output = crate::codegen::u32x2;
  2330. -}
  2331. -impl Shuffle<[u32; 4]> for u32 {
  2332. - type Output = crate::codegen::u32x4;
  2333. -}
  2334. -impl Shuffle<[u32; 8]> for u32 {
  2335. - type Output = crate::codegen::u32x8;
  2336. -}
  2337. -impl Shuffle<[u32; 16]> for u32 {
  2338. - type Output = crate::codegen::u32x16;
  2339. -}
  2340. +impl_shuffle! { [u32; 2], i8, crate::codegen::i8x2 }
  2341. +impl_shuffle! { [u32; 4], i8, crate::codegen::i8x4 }
  2342. +impl_shuffle! { [u32; 8], i8, crate::codegen::i8x8 }
  2343. +impl_shuffle! { [u32; 16], i8, crate::codegen::i8x16 }
  2344. +impl_shuffle! { [u32; 32], i8, crate::codegen::i8x32 }
  2345. +impl_shuffle! { [u32; 64], i8, crate::codegen::i8x64 }
  2346. -impl Shuffle<[u32; 2]> for f32 {
  2347. - type Output = crate::codegen::f32x2;
  2348. -}
  2349. -impl Shuffle<[u32; 4]> for f32 {
  2350. - type Output = crate::codegen::f32x4;
  2351. -}
  2352. -impl Shuffle<[u32; 8]> for f32 {
  2353. - type Output = crate::codegen::f32x8;
  2354. -}
  2355. -impl Shuffle<[u32; 16]> for f32 {
  2356. - type Output = crate::codegen::f32x16;
  2357. -}
  2358. +impl_shuffle! { [u32; 2], u8, crate::codegen::u8x2 }
  2359. +impl_shuffle! { [u32; 4], u8, crate::codegen::u8x4 }
  2360. +impl_shuffle! { [u32; 8], u8, crate::codegen::u8x8 }
  2361. +impl_shuffle! { [u32; 16], u8, crate::codegen::u8x16 }
  2362. +impl_shuffle! { [u32; 32], u8, crate::codegen::u8x32 }
  2363. +impl_shuffle! { [u32; 64], u8, crate::codegen::u8x64 }
  2364. +
  2365. +impl_shuffle! { [u32; 2], m8, crate::codegen::m8x2 }
  2366. +impl_shuffle! { [u32; 4], m8, crate::codegen::m8x4 }
  2367. +impl_shuffle! { [u32; 8], m8, crate::codegen::m8x8 }
  2368. +impl_shuffle! { [u32; 16], m8, crate::codegen::m8x16 }
  2369. +impl_shuffle! { [u32; 32], m8, crate::codegen::m8x32 }
  2370. +impl_shuffle! { [u32; 64], m8, crate::codegen::m8x64 }
  2371. +
  2372. +impl_shuffle! { [u32; 2], i16, crate::codegen::i16x2 }
  2373. +impl_shuffle! { [u32; 4], i16, crate::codegen::i16x4 }
  2374. +impl_shuffle! { [u32; 8], i16, crate::codegen::i16x8 }
  2375. +impl_shuffle! { [u32; 16], i16, crate::codegen::i16x16 }
  2376. +impl_shuffle! { [u32; 32], i16, crate::codegen::i16x32 }
  2377. -impl Shuffle<[u32; 2]> for m32 {
  2378. - type Output = crate::codegen::m32x2;
  2379. -}
  2380. -impl Shuffle<[u32; 4]> for m32 {
  2381. - type Output = crate::codegen::m32x4;
  2382. -}
  2383. -impl Shuffle<[u32; 8]> for m32 {
  2384. - type Output = crate::codegen::m32x8;
  2385. -}
  2386. -impl Shuffle<[u32; 16]> for m32 {
  2387. - type Output = crate::codegen::m32x16;
  2388. -}
  2389. +impl_shuffle! { [u32; 2], u16, crate::codegen::u16x2 }
  2390. +impl_shuffle! { [u32; 4], u16, crate::codegen::u16x4 }
  2391. +impl_shuffle! { [u32; 8], u16, crate::codegen::u16x8 }
  2392. +impl_shuffle! { [u32; 16], u16, crate::codegen::u16x16 }
  2393. +impl_shuffle! { [u32; 32], u16, crate::codegen::u16x32 }
  2394. +
  2395. +impl_shuffle! { [u32; 2], m16, crate::codegen::m16x2 }
  2396. +impl_shuffle! { [u32; 4], m16, crate::codegen::m16x4 }
  2397. +impl_shuffle! { [u32; 8], m16, crate::codegen::m16x8 }
  2398. +impl_shuffle! { [u32; 16], m16, crate::codegen::m16x16 }
  2399. -/* FIXME: 64-bit single element vector
  2400. -impl Shuffle<[u32; 1]> for i64 {
  2401. - type Output = crate::codegen::i64x1;
  2402. -}
  2403. -*/
  2404. -impl Shuffle<[u32; 2]> for i64 {
  2405. - type Output = crate::codegen::i64x2;
  2406. -}
  2407. -impl Shuffle<[u32; 4]> for i64 {
  2408. - type Output = crate::codegen::i64x4;
  2409. -}
  2410. -impl Shuffle<[u32; 8]> for i64 {
  2411. - type Output = crate::codegen::i64x8;
  2412. -}
  2413. +impl_shuffle! { [u32; 2], i32, crate::codegen::i32x2 }
  2414. +impl_shuffle! { [u32; 4], i32, crate::codegen::i32x4 }
  2415. +impl_shuffle! { [u32; 8], i32, crate::codegen::i32x8 }
  2416. +impl_shuffle! { [u32; 16], i32, crate::codegen::i32x16 }
  2417. +
  2418. +impl_shuffle! { [u32; 2], u32, crate::codegen::u32x2 }
  2419. +impl_shuffle! { [u32; 4], u32, crate::codegen::u32x4 }
  2420. +impl_shuffle! { [u32; 8], u32, crate::codegen::u32x8 }
  2421. +impl_shuffle! { [u32; 16], u32, crate::codegen::u32x16 }
  2422. +
  2423. +impl_shuffle! { [u32; 2], f32, crate::codegen::f32x2 }
  2424. +impl_shuffle! { [u32; 4], f32, crate::codegen::f32x4 }
  2425. +impl_shuffle! { [u32; 8], f32, crate::codegen::f32x8 }
  2426. +impl_shuffle! { [u32; 16], f32, crate::codegen::f32x16 }
  2427. +
  2428. +impl_shuffle! { [u32; 2], m32, crate::codegen::m32x2 }
  2429. +impl_shuffle! { [u32; 4], m32, crate::codegen::m32x4 }
  2430. +impl_shuffle! { [u32; 8], m32, crate::codegen::m32x8 }
  2431. +impl_shuffle! { [u32; 16], m32, crate::codegen::m32x16 }
  2432. /* FIXME: 64-bit single element vector
  2433. -impl Shuffle<[u32; 1]> for u64 {
  2434. - type Output = crate::codegen::u64x1;
  2435. -}
  2436. +impl_shuffle! { [u32; 1], i64, crate::codegen::i64x1 }
  2437. */
  2438. -impl Shuffle<[u32; 2]> for u64 {
  2439. - type Output = crate::codegen::u64x2;
  2440. -}
  2441. -impl Shuffle<[u32; 4]> for u64 {
  2442. - type Output = crate::codegen::u64x4;
  2443. -}
  2444. -impl Shuffle<[u32; 8]> for u64 {
  2445. - type Output = crate::codegen::u64x8;
  2446. -}
  2447. +impl_shuffle! { [u32; 2], i64, crate::codegen::i64x2 }
  2448. +impl_shuffle! { [u32; 4], i64, crate::codegen::i64x4 }
  2449. +impl_shuffle! { [u32; 8], i64, crate::codegen::i64x8 }
  2450. /* FIXME: 64-bit single element vector
  2451. -impl Shuffle<[u32; 1]> for f64 {
  2452. - type Output = crate::codegen::f64x1;
  2453. -}
  2454. +impl_shuffle! { [u32; 1], i64, crate::codegen::i64x1 }
  2455. */
  2456. -impl Shuffle<[u32; 2]> for f64 {
  2457. - type Output = crate::codegen::f64x2;
  2458. -}
  2459. -impl Shuffle<[u32; 4]> for f64 {
  2460. - type Output = crate::codegen::f64x4;
  2461. -}
  2462. -impl Shuffle<[u32; 8]> for f64 {
  2463. - type Output = crate::codegen::f64x8;
  2464. -}
  2465. +impl_shuffle! { [u32; 2], u64, crate::codegen::u64x2 }
  2466. +impl_shuffle! { [u32; 4], u64, crate::codegen::u64x4 }
  2467. +impl_shuffle! { [u32; 8], u64, crate::codegen::u64x8 }
  2468. /* FIXME: 64-bit single element vector
  2469. -impl Shuffle<[u32; 1]> for m64 {
  2470. - type Output = crate::codegen::m64x1;
  2471. -}
  2472. +impl_shuffle! { [u32; 1], i64, crate::codegen::i64x1 }
  2473. */
  2474. -impl Shuffle<[u32; 2]> for m64 {
  2475. - type Output = crate::codegen::m64x2;
  2476. -}
  2477. -impl Shuffle<[u32; 4]> for m64 {
  2478. - type Output = crate::codegen::m64x4;
  2479. -}
  2480. -impl Shuffle<[u32; 8]> for m64 {
  2481. - type Output = crate::codegen::m64x8;
  2482. -}
  2483. +impl_shuffle! { [u32; 2], f64, crate::codegen::f64x2 }
  2484. +impl_shuffle! { [u32; 4], f64, crate::codegen::f64x4 }
  2485. +impl_shuffle! { [u32; 8], f64, crate::codegen::f64x8 }
  2486. +
  2487. +/* FIXME: 64-bit single element vector
  2488. +impl_shuffle! { [u32; 1], i64, crate::codegen::i64x1 }
  2489. +*/
  2490. +impl_shuffle! { [u32; 2], m64, crate::codegen::m64x2 }
  2491. +impl_shuffle! { [u32; 4], m64, crate::codegen::m64x4 }
  2492. +impl_shuffle! { [u32; 8], m64, crate::codegen::m64x8 }
  2493. -impl Shuffle<[u32; 2]> for isize {
  2494. - type Output = crate::codegen::isizex2;
  2495. -}
  2496. -impl Shuffle<[u32; 4]> for isize {
  2497. - type Output = crate::codegen::isizex4;
  2498. -}
  2499. -impl Shuffle<[u32; 8]> for isize {
  2500. - type Output = crate::codegen::isizex8;
  2501. -}
  2502. +impl_shuffle! { [u32; 2], isize, crate::codegen::isizex2 }
  2503. +impl_shuffle! { [u32; 4], isize, crate::codegen::isizex4 }
  2504. +impl_shuffle! { [u32; 8], isize, crate::codegen::isizex8 }
  2505. -impl Shuffle<[u32; 2]> for usize {
  2506. - type Output = crate::codegen::usizex2;
  2507. -}
  2508. -impl Shuffle<[u32; 4]> for usize {
  2509. - type Output = crate::codegen::usizex4;
  2510. -}
  2511. -impl Shuffle<[u32; 8]> for usize {
  2512. - type Output = crate::codegen::usizex8;
  2513. -}
  2514. +impl_shuffle! { [u32; 2], usize, crate::codegen::usizex2 }
  2515. +impl_shuffle! { [u32; 4], usize, crate::codegen::usizex4 }
  2516. +impl_shuffle! { [u32; 8], usize, crate::codegen::usizex8 }
  2517. +impl_shuffle! { [u32; 2], msize, crate::codegen::msizex2 }
  2518. +impl_shuffle! { [u32; 4], msize, crate::codegen::msizex4 }
  2519. +impl_shuffle! { [u32; 8], msize, crate::codegen::msizex8 }
  2520. +
  2521. +impl<T> Seal<[u32; 2]> for *const T {}
  2522. impl<T> Shuffle<[u32; 2]> for *const T {
  2523. type Output = crate::codegen::cptrx2<T>;
  2524. }
  2525. +impl<T> Seal<[u32; 4]> for *const T {}
  2526. impl<T> Shuffle<[u32; 4]> for *const T {
  2527. type Output = crate::codegen::cptrx4<T>;
  2528. }
  2529. +impl<T> Seal<[u32; 8]> for *const T {}
  2530. impl<T> Shuffle<[u32; 8]> for *const T {
  2531. type Output = crate::codegen::cptrx8<T>;
  2532. }
  2533. +impl<T> Seal<[u32; 2]> for *mut T {}
  2534. impl<T> Shuffle<[u32; 2]> for *mut T {
  2535. type Output = crate::codegen::mptrx2<T>;
  2536. }
  2537. +impl<T> Seal<[u32; 4]> for *mut T {}
  2538. impl<T> Shuffle<[u32; 4]> for *mut T {
  2539. type Output = crate::codegen::mptrx4<T>;
  2540. }
  2541. +impl<T> Seal<[u32; 8]> for *mut T {}
  2542. impl<T> Shuffle<[u32; 8]> for *mut T {
  2543. type Output = crate::codegen::mptrx8<T>;
  2544. }
  2545. -impl Shuffle<[u32; 2]> for msize {
  2546. - type Output = crate::codegen::msizex2;
  2547. -}
  2548. -impl Shuffle<[u32; 4]> for msize {
  2549. - type Output = crate::codegen::msizex4;
  2550. -}
  2551. -impl Shuffle<[u32; 8]> for msize {
  2552. - type Output = crate::codegen::msizex8;
  2553. -}
  2554. -
  2555. -impl Shuffle<[u32; 1]> for i128 {
  2556. - type Output = crate::codegen::i128x1;
  2557. -}
  2558. -impl Shuffle<[u32; 2]> for i128 {
  2559. - type Output = crate::codegen::i128x2;
  2560. -}
  2561. -impl Shuffle<[u32; 4]> for i128 {
  2562. - type Output = crate::codegen::i128x4;
  2563. -}
  2564. +impl_shuffle! { [u32; 1], i128, crate::codegen::i128x1 }
  2565. +impl_shuffle! { [u32; 2], i128, crate::codegen::i128x2 }
  2566. +impl_shuffle! { [u32; 4], i128, crate::codegen::i128x4 }
  2567. -impl Shuffle<[u32; 1]> for u128 {
  2568. - type Output = crate::codegen::u128x1;
  2569. -}
  2570. -impl Shuffle<[u32; 2]> for u128 {
  2571. - type Output = crate::codegen::u128x2;
  2572. -}
  2573. -impl Shuffle<[u32; 4]> for u128 {
  2574. - type Output = crate::codegen::u128x4;
  2575. -}
  2576. +impl_shuffle! { [u32; 1], u128, crate::codegen::u128x1 }
  2577. +impl_shuffle! { [u32; 2], u128, crate::codegen::u128x2 }
  2578. +impl_shuffle! { [u32; 4], u128, crate::codegen::u128x4 }
  2579. -impl Shuffle<[u32; 1]> for m128 {
  2580. - type Output = crate::codegen::m128x1;
  2581. -}
  2582. -impl Shuffle<[u32; 2]> for m128 {
  2583. - type Output = crate::codegen::m128x2;
  2584. -}
  2585. -impl Shuffle<[u32; 4]> for m128 {
  2586. - type Output = crate::codegen::m128x4;
  2587. -}
  2588. +impl_shuffle! { [u32; 1], m128, crate::codegen::m128x1 }
  2589. +impl_shuffle! { [u32; 2], m128, crate::codegen::m128x2 }
  2590. +impl_shuffle! { [u32; 4], m128, crate::codegen::m128x4 }
  2591. diff --git a/third_party/rust/packed_simd/src/codegen/shuffle1_dyn.rs b/third_party/rust/packed_simd/src/codegen/shuffle1_dyn.rs
  2592. --- a/third_party/rust/packed_simd/src/codegen/shuffle1_dyn.rs
  2593. +++ b/third_party/rust/packed_simd/src/codegen/shuffle1_dyn.rs
  2594. @@ -23,53 +23,32 @@ macro_rules! impl_fallback {
  2595. }
  2596. }
  2597. };
  2598. }
  2599. macro_rules! impl_shuffle1_dyn {
  2600. (u8x8) => {
  2601. cfg_if! {
  2602. - if #[cfg(all(any(target_arch = "x86", target_arch = "x86_64"),
  2603. - target_feature = "ssse3"))] {
  2604. - impl Shuffle1Dyn for u8x8 {
  2605. - type Indices = Self;
  2606. - #[inline]
  2607. - fn shuffle1_dyn(self, indices: Self::Indices) -> Self {
  2608. - #[cfg(target_arch = "x86")]
  2609. - use crate::arch::x86::_mm_shuffle_pi8;
  2610. - #[cfg(target_arch = "x86_64")]
  2611. - use crate::arch::x86_64::_mm_shuffle_pi8;
  2612. -
  2613. - unsafe {
  2614. - crate::mem::transmute(
  2615. - _mm_shuffle_pi8(
  2616. - crate::mem::transmute(self.0),
  2617. - crate::mem::transmute(indices.0)
  2618. - )
  2619. - )
  2620. - }
  2621. - }
  2622. - }
  2623. - } else if #[cfg(all(
  2624. + if #[cfg(all(
  2625. any(
  2626. - all(target_aarch = "aarch64", target_feature = "neon"),
  2627. - all(target_aarch = "arm", target_feature = "v7",
  2628. + all(target_arch = "aarch64", target_feature = "neon"),
  2629. + all(target_arch = "doesnotexist", target_feature = "v7",
  2630. target_feature = "neon")
  2631. ),
  2632. any(feature = "core_arch", libcore_neon)
  2633. )
  2634. )] {
  2635. impl Shuffle1Dyn for u8x8 {
  2636. type Indices = Self;
  2637. #[inline]
  2638. fn shuffle1_dyn(self, indices: Self::Indices) -> Self {
  2639. - #[cfg(targt_arch = "aarch64")]
  2640. + #[cfg(target_arch = "aarch64")]
  2641. use crate::arch::aarch64::vtbl1_u8;
  2642. - #[cfg(targt_arch = "arm")]
  2643. + #[cfg(target_arch = "doesnotexist")]
  2644. use crate::arch::arm::vtbl1_u8;
  2645. // This is safe because the binary is compiled with
  2646. // neon enabled at compile-time and can therefore only
  2647. // run on CPUs that have it enabled.
  2648. unsafe {
  2649. Simd(mem::transmute(
  2650. vtbl1_u8(mem::transmute(self.0),
  2651. @@ -101,17 +80,17 @@ macro_rules! impl_shuffle1_dyn {
  2652. unsafe {
  2653. Simd(mem::transmute(
  2654. _mm_shuffle_epi8(mem::transmute(self.0),
  2655. crate::mem::transmute(indices))
  2656. ))
  2657. }
  2658. }
  2659. }
  2660. - } else if #[cfg(all(target_aarch = "aarch64", target_feature = "neon",
  2661. + } else if #[cfg(all(target_arch = "aarch64", target_feature = "neon",
  2662. any(feature = "core_arch", libcore_neon)))] {
  2663. impl Shuffle1Dyn for u8x16 {
  2664. type Indices = Self;
  2665. #[inline]
  2666. fn shuffle1_dyn(self, indices: Self::Indices) -> Self {
  2667. use crate::arch::aarch64::vqtbl1q_u8;
  2668. // This is safe because the binary is compiled with
  2669. @@ -120,17 +99,17 @@ macro_rules! impl_shuffle1_dyn {
  2670. unsafe {
  2671. Simd(mem::transmute(
  2672. vqtbl1q_u8(mem::transmute(self.0),
  2673. crate::mem::transmute(indices.0))
  2674. ))
  2675. }
  2676. }
  2677. }
  2678. - } else if #[cfg(all(target_aarch = "arm", target_feature = "v7",
  2679. + } else if #[cfg(all(target_arch = "doesnotexist", target_feature = "v7",
  2680. target_feature = "neon",
  2681. any(feature = "core_arch", libcore_neon)))] {
  2682. impl Shuffle1Dyn for u8x16 {
  2683. type Indices = Self;
  2684. #[inline]
  2685. fn shuffle1_dyn(self, indices: Self::Indices) -> Self {
  2686. use crate::arch::arm::vtbl2_u8;
  2687. diff --git a/third_party/rust/packed_simd/src/codegen/vPtr.rs b/third_party/rust/packed_simd/src/codegen/vPtr.rs
  2688. --- a/third_party/rust/packed_simd/src/codegen/vPtr.rs
  2689. +++ b/third_party/rust/packed_simd/src/codegen/vPtr.rs
  2690. @@ -3,23 +3,25 @@
  2691. macro_rules! impl_simd_ptr {
  2692. ([$ptr_ty:ty; $elem_count:expr]: $tuple_id:ident | $ty:ident
  2693. | $($tys:ty),*) => {
  2694. #[derive(Copy, Clone)]
  2695. #[repr(simd)]
  2696. pub struct $tuple_id<$ty>($(crate $tys),*);
  2697. //^^^^^^^ leaked through SimdArray
  2698. + impl<$ty> crate::sealed::Seal for [$ptr_ty; $elem_count] {}
  2699. impl<$ty> crate::sealed::SimdArray for [$ptr_ty; $elem_count] {
  2700. type Tuple = $tuple_id<$ptr_ty>;
  2701. type T = $ptr_ty;
  2702. const N: usize = $elem_count;
  2703. type NT = [u32; $elem_count];
  2704. }
  2705. + impl<$ty> crate::sealed::Seal for $tuple_id<$ptr_ty> {}
  2706. impl<$ty> crate::sealed::Simd for $tuple_id<$ptr_ty> {
  2707. type Element = $ptr_ty;
  2708. const LANES: usize = $elem_count;
  2709. type LanesType = [u32; $elem_count];
  2710. }
  2711. }
  2712. }
  2713. diff --git a/third_party/rust/packed_simd/src/lib.rs b/third_party/rust/packed_simd/src/lib.rs
  2714. --- a/third_party/rust/packed_simd/src/lib.rs
  2715. +++ b/third_party/rust/packed_simd/src/lib.rs
  2716. @@ -196,40 +196,45 @@
  2717. //!
  2718. //! * casting from an `f64` to an `f32` **rounds to nearest, ties to even**.
  2719. //!
  2720. //! Numeric casts are not very "precise": sometimes lossy, sometimes value
  2721. //! preserving, etc.
  2722. #![feature(
  2723. repr_simd,
  2724. + rustc_attrs,
  2725. const_fn,
  2726. platform_intrinsics,
  2727. stdsimd,
  2728. aarch64_target_feature,
  2729. arm_target_feature,
  2730. link_llvm_intrinsics,
  2731. core_intrinsics,
  2732. stmt_expr_attributes,
  2733. - align_offset,
  2734. - mmx_target_feature,
  2735. crate_visibility_modifier,
  2736. custom_inner_attributes
  2737. )]
  2738. #![allow(non_camel_case_types, non_snake_case,
  2739. - clippy::cast_possible_truncation,
  2740. - clippy::cast_lossless,
  2741. - clippy::cast_possible_wrap,
  2742. - clippy::cast_precision_loss,
  2743. - // This lint is currently broken for generic code
  2744. - // See https://github.com/rust-lang/rust-clippy/issues/3410
  2745. - clippy::use_self
  2746. + // FIXME: these types are unsound in C FFI already
  2747. + // See https://github.com/rust-lang/rust/issues/53346
  2748. + improper_ctypes_definitions,
  2749. + clippy::cast_possible_truncation,
  2750. + clippy::cast_lossless,
  2751. + clippy::cast_possible_wrap,
  2752. + clippy::cast_precision_loss,
  2753. + // TODO: manually add the `#[must_use]` attribute where appropriate
  2754. + clippy::must_use_candidate,
  2755. + // This lint is currently broken for generic code
  2756. + // See https://github.com/rust-lang/rust-clippy/issues/3410
  2757. + clippy::use_self,
  2758. + clippy::wrong_self_convention,
  2759. )]
  2760. #![cfg_attr(test, feature(hashmap_internals))]
  2761. -#![deny(warnings, rust_2018_idioms, clippy::missing_inline_in_public_items)]
  2762. +#![deny(rust_2018_idioms, clippy::missing_inline_in_public_items)]
  2763. #![no_std]
  2764. use cfg_if::cfg_if;
  2765. cfg_if! {
  2766. if #[cfg(feature = "core_arch")] {
  2767. #[allow(unused_imports)]
  2768. use core_arch as arch;
  2769. @@ -251,16 +256,18 @@ use core::{
  2770. #[macro_use]
  2771. mod testing;
  2772. #[macro_use]
  2773. mod api;
  2774. mod codegen;
  2775. mod sealed;
  2776. +pub use crate::sealed::{Simd as SimdVector, Shuffle, SimdArray, Mask};
  2777. +
  2778. /// Packed SIMD vector type.
  2779. ///
  2780. /// # Examples
  2781. ///
  2782. /// ```
  2783. /// # use packed_simd::Simd;
  2784. /// let v = Simd::<[i32; 4]>::new(0, 1, 2, 3);
  2785. /// assert_eq!(v.extract(2), 2);
  2786. @@ -271,16 +278,18 @@ pub struct Simd<A: sealed::SimdArray>(
  2787. // FIXME: this type should be private,
  2788. // but it currently must be public for the
  2789. // `shuffle!` macro to work: it needs to
  2790. // access the internal `repr(simd)` type
  2791. // to call the shuffle intrinsics.
  2792. #[doc(hidden)] pub <A as sealed::SimdArray>::Tuple,
  2793. );
  2794. +impl<A: sealed::SimdArray> sealed::Seal for Simd<A> {}
  2795. +
  2796. /// Wrapper over `T` implementing a lexicoraphical order via the `PartialOrd`
  2797. /// and/or `Ord` traits.
  2798. #[repr(transparent)]
  2799. #[derive(Copy, Clone, Debug)]
  2800. #[allow(clippy::missing_inline_in_public_items)]
  2801. pub struct LexicographicallyOrdered<T>(T);
  2802. mod masks;
  2803. diff --git a/third_party/rust/packed_simd/src/masks.rs b/third_party/rust/packed_simd/src/masks.rs
  2804. --- a/third_party/rust/packed_simd/src/masks.rs
  2805. +++ b/third_party/rust/packed_simd/src/masks.rs
  2806. @@ -1,17 +1,19 @@
  2807. //! Mask types
  2808. macro_rules! impl_mask_ty {
  2809. ($id:ident : $elem_ty:ident | #[$doc:meta]) => {
  2810. #[$doc]
  2811. #[derive(Copy, Clone)]
  2812. pub struct $id($elem_ty);
  2813. + impl crate::sealed::Seal for $id {}
  2814. impl crate::sealed::Mask for $id {
  2815. + #[inline]
  2816. fn test(&self) -> bool {
  2817. $id::test(self)
  2818. }
  2819. }
  2820. impl $id {
  2821. /// Instantiate a mask with `value`
  2822. #[inline]
  2823. diff --git a/third_party/rust/packed_simd/src/sealed.rs b/third_party/rust/packed_simd/src/sealed.rs
  2824. --- a/third_party/rust/packed_simd/src/sealed.rs
  2825. +++ b/third_party/rust/packed_simd/src/sealed.rs
  2826. @@ -1,41 +1,42 @@
  2827. //! Sealed traits
  2828. +/// A sealed trait, this is logically private to the crate
  2829. +/// and will prevent implementations from outside the crate
  2830. +pub trait Seal<T = ()> {}
  2831. +
  2832. /// Trait implemented by arrays that can be SIMD types.
  2833. -#[doc(hidden)]
  2834. -pub trait SimdArray {
  2835. +pub trait SimdArray: Seal {
  2836. /// The type of the #[repr(simd)] type.
  2837. type Tuple: Copy + Clone;
  2838. /// The element type of the vector.
  2839. type T;
  2840. /// The number of elements in the array.
  2841. const N: usize;
  2842. /// The type: `[u32; Self::N]`.
  2843. type NT;
  2844. }
  2845. /// This traits is used to constraint the arguments
  2846. /// and result type of the portable shuffles.
  2847. #[doc(hidden)]
  2848. -pub trait Shuffle<Lanes> {
  2849. +pub trait Shuffle<Lanes>: Seal<Lanes> {
  2850. // Lanes is a `[u32; N]` where `N` is the number of vector lanes
  2851. /// The result type of the shuffle.
  2852. type Output;
  2853. }
  2854. /// This trait is implemented by all SIMD vector types.
  2855. -#[doc(hidden)]
  2856. -pub trait Simd {
  2857. +pub trait Simd: Seal {
  2858. /// Element type of the SIMD vector
  2859. type Element;
  2860. /// The number of elements in the SIMD vector.
  2861. const LANES: usize;
  2862. /// The type: `[u32; Self::N]`.
  2863. type LanesType;
  2864. }
  2865. /// This trait is implemented by all mask types
  2866. -#[doc(hidden)]
  2867. -pub trait Mask {
  2868. +pub trait Mask: Seal {
  2869. fn test(&self) -> bool;
  2870. }
  2871. diff --git a/third_party/rust/packed_simd/src/testing/utils.rs b/third_party/rust/packed_simd/src/testing/utils.rs
  2872. --- a/third_party/rust/packed_simd/src/testing/utils.rs
  2873. +++ b/third_party/rust/packed_simd/src/testing/utils.rs
  2874. @@ -1,11 +1,13 @@
  2875. //! Testing utilities
  2876. #![allow(dead_code)]
  2877. +// FIXME: Or don't. But it's true this is a problematic comparison.
  2878. +#![allow(clippy::neg_cmp_op_on_partial_ord)]
  2879. use crate::{cmp::PartialOrd, fmt::Debug, LexicographicallyOrdered};
  2880. /// Tests PartialOrd for `a` and `b` where `a < b` is true.
  2881. pub fn test_lt<T>(
  2882. a: LexicographicallyOrdered<T>, b: LexicographicallyOrdered<T>,
  2883. ) where
  2884. LexicographicallyOrdered<T>: Debug + PartialOrd,
  2885. @@ -14,37 +16,42 @@ pub fn test_lt<T>(
  2886. assert!(b > a, "{:?}, {:?}", a, b);
  2887. assert!(!(a == b), "{:?}, {:?}", a, b);
  2888. assert!(a != b, "{:?}, {:?}", a, b);
  2889. assert!(a <= b, "{:?}, {:?}", a, b);
  2890. assert!(b >= a, "{:?}, {:?}", a, b);
  2891. - // Irreflexivity
  2892. - assert!(!(a < a), "{:?}, {:?}", a, b);
  2893. - assert!(!(b < b), "{:?}, {:?}", a, b);
  2894. - assert!(!(a > a), "{:?}, {:?}", a, b);
  2895. - assert!(!(b > b), "{:?}, {:?}", a, b);
  2896. + // The elegance of the mathematical expression of irreflexivity is more
  2897. + // than clippy can handle.
  2898. + #[allow(clippy::eq_op)]
  2899. + {
  2900. + // Irreflexivity
  2901. + assert!(!(a < a), "{:?}, {:?}", a, b);
  2902. + assert!(!(b < b), "{:?}, {:?}", a, b);
  2903. + assert!(!(a > a), "{:?}, {:?}", a, b);
  2904. + assert!(!(b > b), "{:?}, {:?}", a, b);
  2905. - assert!(a <= a, "{:?}, {:?}", a, b);
  2906. - assert!(b <= b, "{:?}, {:?}", a, b);
  2907. + assert!(a <= a, "{:?}, {:?}", a, b);
  2908. + assert!(b <= b, "{:?}, {:?}", a, b);
  2909. + }
  2910. }
  2911. /// Tests PartialOrd for `a` and `b` where `a <= b` is true.
  2912. pub fn test_le<T>(
  2913. a: LexicographicallyOrdered<T>, b: LexicographicallyOrdered<T>,
  2914. ) where
  2915. LexicographicallyOrdered<T>: Debug + PartialOrd,
  2916. {
  2917. assert!(a <= b, "{:?}, {:?}", a, b);
  2918. assert!(b >= a, "{:?}, {:?}", a, b);
  2919. - assert!(a == b || a < b, "{:?}, {:?}", a, b);
  2920. - assert!(a == b || b > a, "{:?}, {:?}", a, b);
  2921. + assert!(a <= b, "{:?}, {:?}", a, b);
  2922. + assert!(b >= a, "{:?}, {:?}", a, b);
  2923. if a == b {
  2924. assert!(!(a < b), "{:?}, {:?}", a, b);
  2925. assert!(!(b > a), "{:?}, {:?}", a, b);
  2926. assert!(!(a != b), "{:?}, {:?}", a, b);
  2927. } else {
  2928. assert!(a != b, "{:?}, {:?}", a, b);
  2929. diff --git a/third_party/rust/packed_simd/src/v128.rs b/third_party/rust/packed_simd/src/v128.rs
  2930. --- a/third_party/rust/packed_simd/src/v128.rs
  2931. +++ b/third_party/rust/packed_simd/src/v128.rs
  2932. @@ -1,80 +1,80 @@
  2933. //! 128-bit wide vector types
  2934. -#![rustfmt::skip]
  2935. +#[rustfmt::skip]
  2936. use crate::*;
  2937. -impl_i!([i8; 16]: i8x16, m8x16 | i8 | test_v128 |
  2938. +impl_i!([i8; 16]: i8x16, m8x16 | i8, u16 | test_v128 |
  2939. x0, x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11, x12, x13, x14, x15 |
  2940. From: |
  2941. /// A 128-bit vector with 16 `i8` lanes.
  2942. );
  2943. -impl_u!([u8; 16]: u8x16, m8x16 | u8 | test_v128 |
  2944. +impl_u!([u8; 16]: u8x16, m8x16 | u8, u16 | test_v128 |
  2945. x0, x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11, x12, x13, x14, x15 |
  2946. From: |
  2947. /// A 128-bit vector with 16 `u8` lanes.
  2948. );
  2949. -impl_m!([m8; 16]: m8x16 | i8 | test_v128 |
  2950. +impl_m!([m8; 16]: m8x16 | i8, u16 | test_v128 |
  2951. x0, x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11, x12, x13, x14, x15 |
  2952. From: m16x16 |
  2953. /// A 128-bit vector mask with 16 `m8` lanes.
  2954. );
  2955. -impl_i!([i16; 8]: i16x8, m16x8 | i16 | test_v128 | x0, x1, x2, x3, x4, x5, x6, x7 |
  2956. +impl_i!([i16; 8]: i16x8, m16x8 | i16, u8 | test_v128 | x0, x1, x2, x3, x4, x5, x6, x7 |
  2957. From: i8x8, u8x8 |
  2958. /// A 128-bit vector with 8 `i16` lanes.
  2959. );
  2960. -impl_u!([u16; 8]: u16x8, m16x8 | u16| test_v128 | x0, x1, x2, x3, x4, x5, x6, x7 |
  2961. +impl_u!([u16; 8]: u16x8, m16x8 | u16, u8 | test_v128 | x0, x1, x2, x3, x4, x5, x6, x7 |
  2962. From: u8x8 |
  2963. /// A 128-bit vector with 8 `u16` lanes.
  2964. );
  2965. -impl_m!([m16; 8]: m16x8 | i16 | test_v128 | x0, x1, x2, x3, x4, x5, x6, x7 |
  2966. +impl_m!([m16; 8]: m16x8 | i16, u8 | test_v128 | x0, x1, x2, x3, x4, x5, x6, x7 |
  2967. From: m8x8, m32x8 |
  2968. /// A 128-bit vector mask with 8 `m16` lanes.
  2969. );
  2970. -impl_i!([i32; 4]: i32x4, m32x4 | i32 | test_v128 | x0, x1, x2, x3 |
  2971. +impl_i!([i32; 4]: i32x4, m32x4 | i32, u8 | test_v128 | x0, x1, x2, x3 |
  2972. From: i8x4, u8x4, i16x4, u16x4 |
  2973. /// A 128-bit vector with 4 `i32` lanes.
  2974. );
  2975. -impl_u!([u32; 4]: u32x4, m32x4 | u32| test_v128 | x0, x1, x2, x3 |
  2976. +impl_u!([u32; 4]: u32x4, m32x4 | u32, u8 | test_v128 | x0, x1, x2, x3 |
  2977. From: u8x4, u16x4 |
  2978. /// A 128-bit vector with 4 `u32` lanes.
  2979. );
  2980. impl_f!([f32; 4]: f32x4, m32x4 | f32 | test_v128 | x0, x1, x2, x3 |
  2981. From: i8x4, u8x4, i16x4, u16x4 |
  2982. /// A 128-bit vector with 4 `f32` lanes.
  2983. );
  2984. -impl_m!([m32; 4]: m32x4 | i32 | test_v128 | x0, x1, x2, x3 |
  2985. +impl_m!([m32; 4]: m32x4 | i32, u8 | test_v128 | x0, x1, x2, x3 |
  2986. From: m8x4, m16x4, m64x4 |
  2987. /// A 128-bit vector mask with 4 `m32` lanes.
  2988. );
  2989. -impl_i!([i64; 2]: i64x2, m64x2 | i64 | test_v128 | x0, x1 |
  2990. +impl_i!([i64; 2]: i64x2, m64x2 | i64, u8 | test_v128 | x0, x1 |
  2991. From: i8x2, u8x2, i16x2, u16x2, i32x2, u32x2 |
  2992. /// A 128-bit vector with 2 `i64` lanes.
  2993. );
  2994. -impl_u!([u64; 2]: u64x2, m64x2 | u64 | test_v128 | x0, x1 |
  2995. +impl_u!([u64; 2]: u64x2, m64x2 | u64, u8 | test_v128 | x0, x1 |
  2996. From: u8x2, u16x2, u32x2 |
  2997. /// A 128-bit vector with 2 `u64` lanes.
  2998. );
  2999. impl_f!([f64; 2]: f64x2, m64x2 | f64 | test_v128 | x0, x1 |
  3000. From: i8x2, u8x2, i16x2, u16x2, i32x2, u32x2, f32x2 |
  3001. /// A 128-bit vector with 2 `f64` lanes.
  3002. );
  3003. -impl_m!([m64; 2]: m64x2 | i64 | test_v128 | x0, x1 |
  3004. +impl_m!([m64; 2]: m64x2 | i64, u8 | test_v128 | x0, x1 |
  3005. From: m8x2, m16x2, m32x2, m128x2 |
  3006. /// A 128-bit vector mask with 2 `m64` lanes.
  3007. );
  3008. -impl_i!([i128; 1]: i128x1, m128x1 | i128 | test_v128 | x0 |
  3009. +impl_i!([i128; 1]: i128x1, m128x1 | i128, u8 | test_v128 | x0 |
  3010. From: /*i8x1, u8x1, i16x1, u16x1, i32x1, u32x1, i64x1, u64x1 */ | // FIXME: unary small vector types
  3011. /// A 128-bit vector with 1 `i128` lane.
  3012. );
  3013. -impl_u!([u128; 1]: u128x1, m128x1 | u128 | test_v128 | x0 |
  3014. +impl_u!([u128; 1]: u128x1, m128x1 | u128, u8 | test_v128 | x0 |
  3015. From: /*u8x1, u16x1, u32x1, u64x1 */ | // FIXME: unary small vector types
  3016. /// A 128-bit vector with 1 `u128` lane.
  3017. );
  3018. -impl_m!([m128; 1]: m128x1 | i128 | test_v128 | x0 |
  3019. +impl_m!([m128; 1]: m128x1 | i128, u8 | test_v128 | x0 |
  3020. From: /*m8x1, m16x1, m32x1, m64x1 */ | // FIXME: unary small vector types
  3021. /// A 128-bit vector mask with 1 `m128` lane.
  3022. );
  3023. diff --git a/third_party/rust/packed_simd/src/v16.rs b/third_party/rust/packed_simd/src/v16.rs
  3024. --- a/third_party/rust/packed_simd/src/v16.rs
  3025. +++ b/third_party/rust/packed_simd/src/v16.rs
  3026. @@ -1,16 +1,16 @@
  3027. //! 16-bit wide vector types
  3028. use crate::*;
  3029. -impl_i!([i8; 2]: i8x2, m8x2 | i8 | test_v16 | x0, x1 |
  3030. +impl_i!([i8; 2]: i8x2, m8x2 | i8, u8 | test_v16 | x0, x1 |
  3031. From: |
  3032. /// A 16-bit vector with 2 `i8` lanes.
  3033. );
  3034. -impl_u!([u8; 2]: u8x2, m8x2 | u8 | test_v16 | x0, x1 |
  3035. +impl_u!([u8; 2]: u8x2, m8x2 | u8, u8 | test_v16 | x0, x1 |
  3036. From: |
  3037. /// A 16-bit vector with 2 `u8` lanes.
  3038. );
  3039. -impl_m!([m8; 2]: m8x2 | i8 | test_v16 | x0, x1 |
  3040. +impl_m!([m8; 2]: m8x2 | i8, u8 | test_v16 | x0, x1 |
  3041. From: m16x2, m32x2, m64x2, m128x2 |
  3042. /// A 16-bit vector mask with 2 `m8` lanes.
  3043. );
  3044. diff --git a/third_party/rust/packed_simd/src/v256.rs b/third_party/rust/packed_simd/src/v256.rs
  3045. --- a/third_party/rust/packed_simd/src/v256.rs
  3046. +++ b/third_party/rust/packed_simd/src/v256.rs
  3047. @@ -1,86 +1,86 @@
  3048. //! 256-bit wide vector types
  3049. -#![rustfmt::skip]
  3050. +#[rustfmt::skip]
  3051. use crate::*;
  3052. -impl_i!([i8; 32]: i8x32, m8x32 | i8 | test_v256 |
  3053. +impl_i!([i8; 32]: i8x32, m8x32 | i8, u32 | test_v256 |
  3054. x0, x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11, x12, x13, x14, x15,
  3055. x16, x17, x18, x19, x20, x21, x22, x23, x24, x25, x26, x27, x28, x29, x30, x31 |
  3056. From: |
  3057. /// A 256-bit vector with 32 `i8` lanes.
  3058. );
  3059. -impl_u!([u8; 32]: u8x32, m8x32 | u8 | test_v256 |
  3060. +impl_u!([u8; 32]: u8x32, m8x32 | u8, u32 | test_v256 |
  3061. x0, x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11, x12, x13, x14, x15,
  3062. x16, x17, x18, x19, x20, x21, x22, x23, x24, x25, x26, x27, x28, x29, x30, x31 |
  3063. From: |
  3064. /// A 256-bit vector with 32 `u8` lanes.
  3065. );
  3066. -impl_m!([m8; 32]: m8x32 | i8 | test_v256 |
  3067. +impl_m!([m8; 32]: m8x32 | i8, u32 | test_v256 |
  3068. x0, x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11, x12, x13, x14, x15,
  3069. x16, x17, x18, x19, x20, x21, x22, x23, x24, x25, x26, x27, x28, x29, x30, x31 |
  3070. From: |
  3071. /// A 256-bit vector mask with 32 `m8` lanes.
  3072. );
  3073. -impl_i!([i16; 16]: i16x16, m16x16 | i16 | test_v256 |
  3074. +impl_i!([i16; 16]: i16x16, m16x16 | i16, u16 | test_v256 |
  3075. x0, x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11, x12, x13, x14, x15 |
  3076. From: i8x16, u8x16 |
  3077. /// A 256-bit vector with 16 `i16` lanes.
  3078. );
  3079. -impl_u!([u16; 16]: u16x16, m16x16 | u16 | test_v256 |
  3080. +impl_u!([u16; 16]: u16x16, m16x16 | u16, u16 | test_v256 |
  3081. x0, x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11, x12, x13, x14, x15 |
  3082. From: u8x16 |
  3083. /// A 256-bit vector with 16 `u16` lanes.
  3084. );
  3085. -impl_m!([m16; 16]: m16x16 | i16 | test_v256 |
  3086. +impl_m!([m16; 16]: m16x16 | i16, u16 | test_v256 |
  3087. x0, x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11, x12, x13, x14, x15 |
  3088. From: m8x16 |
  3089. /// A 256-bit vector mask with 16 `m16` lanes.
  3090. );
  3091. -impl_i!([i32; 8]: i32x8, m32x8 | i32 | test_v256 | x0, x1, x2, x3, x4, x5, x6, x7 |
  3092. +impl_i!([i32; 8]: i32x8, m32x8 | i32, u8 | test_v256 | x0, x1, x2, x3, x4, x5, x6, x7 |
  3093. From: i8x8, u8x8, i16x8, u16x8 |
  3094. /// A 256-bit vector with 8 `i32` lanes.
  3095. );
  3096. -impl_u!([u32; 8]: u32x8, m32x8 | u32 | test_v256 | x0, x1, x2, x3, x4, x5, x6, x7 |
  3097. +impl_u!([u32; 8]: u32x8, m32x8 | u32, u8 | test_v256 | x0, x1, x2, x3, x4, x5, x6, x7 |
  3098. From: u8x8, u16x8 |
  3099. /// A 256-bit vector with 8 `u32` lanes.
  3100. );
  3101. impl_f!([f32; 8]: f32x8, m32x8 | f32 | test_v256 | x0, x1, x2, x3, x4, x5, x6, x7 |
  3102. From: i8x8, u8x8, i16x8, u16x8 |
  3103. /// A 256-bit vector with 8 `f32` lanes.
  3104. );
  3105. -impl_m!([m32; 8]: m32x8 | i32 | test_v256 | x0, x1, x2, x3, x4, x5, x6, x7 |
  3106. +impl_m!([m32; 8]: m32x8 | i32, u8 | test_v256 | x0, x1, x2, x3, x4, x5, x6, x7 |
  3107. From: m8x8, m16x8 |
  3108. /// A 256-bit vector mask with 8 `m32` lanes.
  3109. );
  3110. -impl_i!([i64; 4]: i64x4, m64x4 | i64 | test_v256 | x0, x1, x2, x3 |
  3111. +impl_i!([i64; 4]: i64x4, m64x4 | i64, u8 | test_v256 | x0, x1, x2, x3 |
  3112. From: i8x4, u8x4, i16x4, u16x4, i32x4, u32x4 |
  3113. /// A 256-bit vector with 4 `i64` lanes.
  3114. );
  3115. -impl_u!([u64; 4]: u64x4, m64x4 | u64 | test_v256 | x0, x1, x2, x3 |
  3116. +impl_u!([u64; 4]: u64x4, m64x4 | u64, u8 | test_v256 | x0, x1, x2, x3 |
  3117. From: u8x4, u16x4, u32x4 |
  3118. /// A 256-bit vector with 4 `u64` lanes.
  3119. );
  3120. impl_f!([f64; 4]: f64x4, m64x4 | f64 | test_v256 | x0, x1, x2, x3 |
  3121. From: i8x4, u8x4, i16x4, u16x4, i32x4, u32x4, f32x4 |
  3122. /// A 256-bit vector with 4 `f64` lanes.
  3123. );
  3124. -impl_m!([m64; 4]: m64x4 | i64 | test_v256 | x0, x1, x2, x3 |
  3125. +impl_m!([m64; 4]: m64x4 | i64, u8 | test_v256 | x0, x1, x2, x3 |
  3126. From: m8x4, m16x4, m32x4 |
  3127. /// A 256-bit vector mask with 4 `m64` lanes.
  3128. );
  3129. -impl_i!([i128; 2]: i128x2, m128x2 | i128 | test_v256 | x0, x1 |
  3130. +impl_i!([i128; 2]: i128x2, m128x2 | i128, u8 | test_v256 | x0, x1 |
  3131. From: i8x2, u8x2, i16x2, u16x2, i32x2, u32x2, i64x2, u64x2 |
  3132. /// A 256-bit vector with 2 `i128` lanes.
  3133. );
  3134. -impl_u!([u128; 2]: u128x2, m128x2 | u128 | test_v256 | x0, x1 |
  3135. +impl_u!([u128; 2]: u128x2, m128x2 | u128, u8 | test_v256 | x0, x1 |
  3136. From: u8x2, u16x2, u32x2, u64x2 |
  3137. /// A 256-bit vector with 2 `u128` lanes.
  3138. );
  3139. -impl_m!([m128; 2]: m128x2 | i128 | test_v256 | x0, x1 |
  3140. +impl_m!([m128; 2]: m128x2 | i128, u8 | test_v256 | x0, x1 |
  3141. From: m8x2, m16x2, m32x2, m64x2 |
  3142. /// A 256-bit vector mask with 2 `m128` lanes.
  3143. );
  3144. diff --git a/third_party/rust/packed_simd/src/v32.rs b/third_party/rust/packed_simd/src/v32.rs
  3145. --- a/third_party/rust/packed_simd/src/v32.rs
  3146. +++ b/third_party/rust/packed_simd/src/v32.rs
  3147. @@ -1,29 +1,29 @@
  3148. //! 32-bit wide vector types
  3149. use crate::*;
  3150. -impl_i!([i8; 4]: i8x4, m8x4 | i8 | test_v32 | x0, x1, x2, x3 |
  3151. +impl_i!([i8; 4]: i8x4, m8x4 | i8, u8 | test_v32 | x0, x1, x2, x3 |
  3152. From: |
  3153. /// A 32-bit vector with 4 `i8` lanes.
  3154. );
  3155. -impl_u!([u8; 4]: u8x4, m8x4 | u8 | test_v32 | x0, x1, x2, x3 |
  3156. +impl_u!([u8; 4]: u8x4, m8x4 | u8, u8 | test_v32 | x0, x1, x2, x3 |
  3157. From: |
  3158. /// A 32-bit vector with 4 `u8` lanes.
  3159. );
  3160. -impl_m!([m8; 4]: m8x4 | i8 | test_v32 | x0, x1, x2, x3 |
  3161. +impl_m!([m8; 4]: m8x4 | i8, u8 | test_v32 | x0, x1, x2, x3 |
  3162. From: m16x4, m32x4, m64x4 |
  3163. /// A 32-bit vector mask with 4 `m8` lanes.
  3164. );
  3165. -impl_i!([i16; 2]: i16x2, m16x2 | i16 | test_v32 | x0, x1 |
  3166. +impl_i!([i16; 2]: i16x2, m16x2 | i16, u8 | test_v32 | x0, x1 |
  3167. From: i8x2, u8x2 |
  3168. /// A 32-bit vector with 2 `i16` lanes.
  3169. );
  3170. -impl_u!([u16; 2]: u16x2, m16x2 | u16 | test_v32 | x0, x1 |
  3171. +impl_u!([u16; 2]: u16x2, m16x2 | u16, u8 | test_v32 | x0, x1 |
  3172. From: u8x2 |
  3173. /// A 32-bit vector with 2 `u16` lanes.
  3174. );
  3175. -impl_m!([m16; 2]: m16x2 | i16 | test_v32 | x0, x1 |
  3176. +impl_m!([m16; 2]: m16x2 | i16, u8 | test_v32 | x0, x1 |
  3177. From: m8x2, m32x2, m64x2, m128x2 |
  3178. /// A 32-bit vector mask with 2 `m16` lanes.
  3179. );
  3180. diff --git a/third_party/rust/packed_simd/src/v512.rs b/third_party/rust/packed_simd/src/v512.rs
  3181. --- a/third_party/rust/packed_simd/src/v512.rs
  3182. +++ b/third_party/rust/packed_simd/src/v512.rs
  3183. @@ -1,99 +1,99 @@
  3184. //! 512-bit wide vector types
  3185. -#![rustfmt::skip]
  3186. +#[rustfmt::skip]
  3187. use crate::*;
  3188. -impl_i!([i8; 64]: i8x64, m8x64 | i8 | test_v512 |
  3189. +impl_i!([i8; 64]: i8x64, m8x64 | i8, u64 | test_v512 |
  3190. x0, x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11, x12, x13, x14, x15,
  3191. x16, x17, x18, x19, x20, x21, x22, x23, x24, x25, x26, x27, x28, x29, x30, x31,
  3192. x32, x33, x34, x35, x36, x37, x38, x39, x40, x41, x42, x43, x44, x45, x46, x47,
  3193. x48, x49, x50, x51, x52, x53, x54, x55, x56, x57, x58, x59, x60, x61, x62, x63 |
  3194. From: |
  3195. /// A 512-bit vector with 64 `i8` lanes.
  3196. );
  3197. -impl_u!([u8; 64]: u8x64, m8x64 | u8 | test_v512 |
  3198. +impl_u!([u8; 64]: u8x64, m8x64 | u8, u64 | test_v512 |
  3199. x0, x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11, x12, x13, x14, x15,
  3200. x16, x17, x18, x19, x20, x21, x22, x23, x24, x25, x26, x27, x28, x29, x30, x31,
  3201. x32, x33, x34, x35, x36, x37, x38, x39, x40, x41, x42, x43, x44, x45, x46, x47,
  3202. x48, x49, x50, x51, x52, x53, x54, x55, x56, x57, x58, x59, x60, x61, x62, x63 |
  3203. From: |
  3204. /// A 512-bit vector with 64 `u8` lanes.
  3205. );
  3206. -impl_m!([m8; 64]: m8x64 | i8 | test_v512 |
  3207. +impl_m!([m8; 64]: m8x64 | i8, u64 | test_v512 |
  3208. x0, x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11, x12, x13, x14, x15,
  3209. x16, x17, x18, x19, x20, x21, x22, x23, x24, x25, x26, x27, x28, x29, x30, x31,
  3210. x32, x33, x34, x35, x36, x37, x38, x39, x40, x41, x42, x43, x44, x45, x46, x47,
  3211. x48, x49, x50, x51, x52, x53, x54, x55, x56, x57, x58, x59, x60, x61, x62, x63 |
  3212. From: |
  3213. /// A 512-bit vector mask with 64 `m8` lanes.
  3214. );
  3215. -impl_i!([i16; 32]: i16x32, m16x32 | i16 | test_v512 |
  3216. +impl_i!([i16; 32]: i16x32, m16x32 | i16, u32 | test_v512 |
  3217. x0, x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11, x12, x13, x14, x15,
  3218. x16, x17, x18, x19, x20, x21, x22, x23, x24, x25, x26, x27, x28, x29, x30, x31 |
  3219. From: i8x32, u8x32 |
  3220. /// A 512-bit vector with 32 `i16` lanes.
  3221. );
  3222. -impl_u!([u16; 32]: u16x32, m16x32 | u16 | test_v512 |
  3223. +impl_u!([u16; 32]: u16x32, m16x32 | u16, u32 | test_v512 |
  3224. x0, x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11, x12, x13, x14, x15,
  3225. x16, x17, x18, x19, x20, x21, x22, x23, x24, x25, x26, x27, x28, x29, x30, x31 |
  3226. From: u8x32 |
  3227. /// A 512-bit vector with 32 `u16` lanes.
  3228. );
  3229. -impl_m!([m16; 32]: m16x32 | i16 | test_v512 |
  3230. +impl_m!([m16; 32]: m16x32 | i16, u32 | test_v512 |
  3231. x0, x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11, x12, x13, x14, x15,
  3232. x16, x17, x18, x19, x20, x21, x22, x23, x24, x25, x26, x27, x28, x29, x30, x31 |
  3233. From: m8x32 |
  3234. /// A 512-bit vector mask with 32 `m16` lanes.
  3235. );
  3236. -impl_i!([i32; 16]: i32x16, m32x16 | i32 | test_v512 |
  3237. +impl_i!([i32; 16]: i32x16, m32x16 | i32, u16 | test_v512 |
  3238. x0, x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11, x12, x13, x14, x15 |
  3239. From: i8x16, u8x16, i16x16, u16x16 |
  3240. /// A 512-bit vector with 16 `i32` lanes.
  3241. );
  3242. -impl_u!([u32; 16]: u32x16, m32x16 | u32 | test_v512 |
  3243. +impl_u!([u32; 16]: u32x16, m32x16 | u32, u16 | test_v512 |
  3244. x0, x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11, x12, x13, x14, x15 |
  3245. From: u8x16, u16x16 |
  3246. /// A 512-bit vector with 16 `u32` lanes.
  3247. );
  3248. impl_f!([f32; 16]: f32x16, m32x16 | f32 | test_v512 |
  3249. x0, x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11, x12, x13, x14, x15 |
  3250. From: i8x16, u8x16, i16x16, u16x16 |
  3251. /// A 512-bit vector with 16 `f32` lanes.
  3252. );
  3253. -impl_m!([m32; 16]: m32x16 | i32 | test_v512 |
  3254. +impl_m!([m32; 16]: m32x16 | i32, u16 | test_v512 |
  3255. x0, x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11, x12, x13, x14, x15 |
  3256. From: m8x16, m16x16 |
  3257. /// A 512-bit vector mask with 16 `m32` lanes.
  3258. );
  3259. -impl_i!([i64; 8]: i64x8, m64x8 | i64 | test_v512 | x0, x1, x2, x3, x4, x5, x6, x7 |
  3260. +impl_i!([i64; 8]: i64x8, m64x8 | i64, u8 | test_v512 | x0, x1, x2, x3, x4, x5, x6, x7 |
  3261. From: i8x8, u8x8, i16x8, u16x8, i32x8, u32x8 |
  3262. /// A 512-bit vector with 8 `i64` lanes.
  3263. );
  3264. -impl_u!([u64; 8]: u64x8, m64x8 | u64 | test_v512 | x0, x1, x2, x3, x4, x5, x6, x7 |
  3265. +impl_u!([u64; 8]: u64x8, m64x8 | u64, u8 | test_v512 | x0, x1, x2, x3, x4, x5, x6, x7 |
  3266. From: u8x8, u16x8, u32x8 |
  3267. /// A 512-bit vector with 8 `u64` lanes.
  3268. );
  3269. impl_f!([f64; 8]: f64x8, m64x8 | f64 | test_v512 | x0, x1, x2, x3, x4, x5, x6, x7 |
  3270. From: i8x8, u8x8, i16x8, u16x8, i32x8, u32x8, f32x8 |
  3271. /// A 512-bit vector with 8 `f64` lanes.
  3272. );
  3273. -impl_m!([m64; 8]: m64x8 | i64 | test_v512 | x0, x1, x2, x3, x4, x5, x6, x7 |
  3274. +impl_m!([m64; 8]: m64x8 | i64, u8 | test_v512 | x0, x1, x2, x3, x4, x5, x6, x7 |
  3275. From: m8x8, m16x8, m32x8 |
  3276. /// A 512-bit vector mask with 8 `m64` lanes.
  3277. );
  3278. -impl_i!([i128; 4]: i128x4, m128x4 | i128 | test_v512 | x0, x1, x2, x3 |
  3279. +impl_i!([i128; 4]: i128x4, m128x4 | i128, u8 | test_v512 | x0, x1, x2, x3 |
  3280. From: i8x4, u8x4, i16x4, u16x4, i32x4, u32x4, i64x4, u64x4 |
  3281. /// A 512-bit vector with 4 `i128` lanes.
  3282. );
  3283. -impl_u!([u128; 4]: u128x4, m128x4 | u128 | test_v512 | x0, x1, x2, x3 |
  3284. +impl_u!([u128; 4]: u128x4, m128x4 | u128, u8 | test_v512 | x0, x1, x2, x3 |
  3285. From: u8x4, u16x4, u32x4, u64x4 |
  3286. /// A 512-bit vector with 4 `u128` lanes.
  3287. );
  3288. -impl_m!([m128; 4]: m128x4 | i128 | test_v512 | x0, x1, x2, x3 |
  3289. +impl_m!([m128; 4]: m128x4 | i128, u8 | test_v512 | x0, x1, x2, x3 |
  3290. From: m8x4, m16x4, m32x4, m64x4 |
  3291. /// A 512-bit vector mask with 4 `m128` lanes.
  3292. );
  3293. diff --git a/third_party/rust/packed_simd/src/v64.rs b/third_party/rust/packed_simd/src/v64.rs
  3294. --- a/third_party/rust/packed_simd/src/v64.rs
  3295. +++ b/third_party/rust/packed_simd/src/v64.rs
  3296. @@ -1,66 +1,66 @@
  3297. //! 64-bit wide vector types
  3298. -#![rustfmt::skip]
  3299. +#[rustfmt::skip]
  3300. use super::*;
  3301. -impl_i!([i8; 8]: i8x8, m8x8 | i8 | test_v64 | x0, x1, x2, x3, x4, x5, x6, x7 |
  3302. +impl_i!([i8; 8]: i8x8, m8x8 | i8, u8 | test_v64 | x0, x1, x2, x3, x4, x5, x6, x7 |
  3303. From: |
  3304. /// A 64-bit vector with 8 `i8` lanes.
  3305. );
  3306. -impl_u!([u8; 8]: u8x8, m8x8 | u8 | test_v64 | x0, x1, x2, x3, x4, x5, x6, x7 |
  3307. +impl_u!([u8; 8]: u8x8, m8x8 | u8, u8 | test_v64 | x0, x1, x2, x3, x4, x5, x6, x7 |
  3308. From: |
  3309. /// A 64-bit vector with 8 `u8` lanes.
  3310. );
  3311. -impl_m!([m8; 8]: m8x8 | i8 | test_v64 | x0, x1, x2, x3, x4, x5, x6, x7 |
  3312. +impl_m!([m8; 8]: m8x8 | i8, u8 | test_v64 | x0, x1, x2, x3, x4, x5, x6, x7 |
  3313. From: m16x8, m32x8 |
  3314. /// A 64-bit vector mask with 8 `m8` lanes.
  3315. );
  3316. -impl_i!([i16; 4]: i16x4, m16x4 | i16 | test_v64 | x0, x1, x2, x3 |
  3317. +impl_i!([i16; 4]: i16x4, m16x4 | i16, u8 | test_v64 | x0, x1, x2, x3 |
  3318. From: i8x4, u8x4 |
  3319. /// A 64-bit vector with 4 `i16` lanes.
  3320. );
  3321. -impl_u!([u16; 4]: u16x4, m16x4 | u16 | test_v64 | x0, x1, x2, x3 |
  3322. +impl_u!([u16; 4]: u16x4, m16x4 | u16, u8 | test_v64 | x0, x1, x2, x3 |
  3323. From: u8x4 |
  3324. /// A 64-bit vector with 4 `u16` lanes.
  3325. );
  3326. -impl_m!([m16; 4]: m16x4 | i16 | test_v64 | x0, x1, x2, x3 |
  3327. +impl_m!([m16; 4]: m16x4 | i16, u8 | test_v64 | x0, x1, x2, x3 |
  3328. From: m8x4, m32x4, m64x4 |
  3329. /// A 64-bit vector mask with 4 `m16` lanes.
  3330. );
  3331. -impl_i!([i32; 2]: i32x2, m32x2 | i32 | test_v64 | x0, x1 |
  3332. +impl_i!([i32; 2]: i32x2, m32x2 | i32, u8 | test_v64 | x0, x1 |
  3333. From: i8x2, u8x2, i16x2, u16x2 |
  3334. /// A 64-bit vector with 2 `i32` lanes.
  3335. );
  3336. -impl_u!([u32; 2]: u32x2, m32x2 | u32 | test_v64 | x0, x1 |
  3337. +impl_u!([u32; 2]: u32x2, m32x2 | u32, u8 | test_v64 | x0, x1 |
  3338. From: u8x2, u16x2 |
  3339. /// A 64-bit vector with 2 `u32` lanes.
  3340. );
  3341. -impl_m!([m32; 2]: m32x2 | i32 | test_v64 | x0, x1 |
  3342. +impl_m!([m32; 2]: m32x2 | i32, u8 | test_v64 | x0, x1 |
  3343. From: m8x2, m16x2, m64x2, m128x2 |
  3344. /// A 64-bit vector mask with 2 `m32` lanes.
  3345. );
  3346. impl_f!([f32; 2]: f32x2, m32x2 | f32 | test_v64 | x0, x1 |
  3347. From: i8x2, u8x2, i16x2, u16x2 |
  3348. /// A 64-bit vector with 2 `f32` lanes.
  3349. );
  3350. /*
  3351. -impl_i!([i64; 1]: i64x1, m64x1 | i64 | test_v64 | x0 |
  3352. +impl_i!([i64; 1]: i64x1, m64x1 | i64, u8 | test_v64 | x0 |
  3353. From: /*i8x1, u8x1, i16x1, u16x1, i32x1, u32x1*/ | // FIXME: primitive to vector conversion
  3354. /// A 64-bit vector with 1 `i64` lanes.
  3355. );
  3356. -impl_u!([u64; 1]: u64x1, m64x1 | u64 | test_v64 | x0 |
  3357. +impl_u!([u64; 1]: u64x1, m64x1 | u64, u8 | test_v64 | x0 |
  3358. From: /*u8x1, u16x1, u32x1*/ | // FIXME: primitive to vector conversion
  3359. /// A 64-bit vector with 1 `u64` lanes.
  3360. );
  3361. -impl_m!([m64; 1]: m64x1 | i64 | test_v64 | x0 |
  3362. +impl_m!([m64; 1]: m64x1 | i64, u8 | test_v64 | x0 |
  3363. From: /*m8x1, m16x1, m32x1, */ m128x1 | // FIXME: unary small vector types
  3364. /// A 64-bit vector mask with 1 `m64` lanes.
  3365. );
  3366. impl_f!([f64; 1]: f64x1, m64x1 | f64 | test_v64 | x0 |
  3367. From: /*i8x1, u8x1, i16x1, u16x1, i32x1, u32x1, f32x1*/ | // FIXME: unary small vector types
  3368. /// A 64-bit vector with 1 `f64` lanes.
  3369. );
  3370. */
  3371. diff --git a/third_party/rust/packed_simd/src/vPtr.rs b/third_party/rust/packed_simd/src/vPtr.rs
  3372. --- a/third_party/rust/packed_simd/src/vPtr.rs
  3373. +++ b/third_party/rust/packed_simd/src/vPtr.rs
  3374. @@ -1,10 +1,10 @@
  3375. //! Vectors of pointers
  3376. -#![rustfmt::skip]
  3377. +#[rustfmt::skip]
  3378. use crate::*;
  3379. impl_const_p!(
  3380. [*const T; 2]: cptrx2, msizex2, usizex2, isizex2 | test_v128 | x0, x1 | From: |
  3381. /// A vector with 2 `*const T` lanes
  3382. );
  3383. diff --git a/third_party/rust/packed_simd/src/vSize.rs b/third_party/rust/packed_simd/src/vSize.rs
  3384. --- a/third_party/rust/packed_simd/src/vSize.rs
  3385. +++ b/third_party/rust/packed_simd/src/vSize.rs
  3386. @@ -1,53 +1,53 @@
  3387. //! Vectors with pointer-sized elements
  3388. use crate::codegen::pointer_sized_int::{isize_, usize_};
  3389. use crate::*;
  3390. -impl_i!([isize; 2]: isizex2, msizex2 | isize_ | test_v128 |
  3391. +impl_i!([isize; 2]: isizex2, msizex2 | isize_, u8 | test_v128 |
  3392. x0, x1|
  3393. From: |
  3394. /// A vector with 2 `isize` lanes.
  3395. );
  3396. -impl_u!([usize; 2]: usizex2, msizex2 | usize_ | test_v128 |
  3397. +impl_u!([usize; 2]: usizex2, msizex2 | usize_, u8 | test_v128 |
  3398. x0, x1|
  3399. From: |
  3400. /// A vector with 2 `usize` lanes.
  3401. );
  3402. -impl_m!([msize; 2]: msizex2 | isize_ | test_v128 |
  3403. +impl_m!([msize; 2]: msizex2 | isize_, u8 | test_v128 |
  3404. x0, x1 |
  3405. From: |
  3406. /// A vector mask with 2 `msize` lanes.
  3407. );
  3408. -impl_i!([isize; 4]: isizex4, msizex4 | isize_ | test_v256 |
  3409. +impl_i!([isize; 4]: isizex4, msizex4 | isize_, u8 | test_v256 |
  3410. x0, x1, x2, x3 |
  3411. From: |
  3412. /// A vector with 4 `isize` lanes.
  3413. );
  3414. -impl_u!([usize; 4]: usizex4, msizex4 | usize_ | test_v256 |
  3415. +impl_u!([usize; 4]: usizex4, msizex4 | usize_, u8 | test_v256 |
  3416. x0, x1, x2, x3|
  3417. From: |
  3418. /// A vector with 4 `usize` lanes.
  3419. );
  3420. -impl_m!([msize; 4]: msizex4 | isize_ | test_v256 |
  3421. +impl_m!([msize; 4]: msizex4 | isize_, u8 | test_v256 |
  3422. x0, x1, x2, x3 |
  3423. From: |
  3424. /// A vector mask with 4 `msize` lanes.
  3425. );
  3426. -impl_i!([isize; 8]: isizex8, msizex8 | isize_ | test_v512 |
  3427. +impl_i!([isize; 8]: isizex8, msizex8 | isize_, u8 | test_v512 |
  3428. x0, x1, x2, x3, x4, x5, x6, x7 |
  3429. From: |
  3430. - /// A vector with 4 `isize` lanes.
  3431. + /// A vector with 8 `isize` lanes.
  3432. );
  3433. -impl_u!([usize; 8]: usizex8, msizex8 | usize_ | test_v512 |
  3434. +impl_u!([usize; 8]: usizex8, msizex8 | usize_, u8 | test_v512 |
  3435. x0, x1, x2, x3, x4, x5, x6, x7 |
  3436. From: |
  3437. /// A vector with 8 `usize` lanes.
  3438. );
  3439. -impl_m!([msize; 8]: msizex8 | isize_ | test_v512 |
  3440. +impl_m!([msize; 8]: msizex8 | isize_, u8 | test_v512 |
  3441. x0, x1, x2, x3, x4, x5, x6, x7 |
  3442. From: |
  3443. /// A vector mask with 8 `msize` lanes.
  3444. );
  3445. diff --git a/third_party/rust/packed_simd/tests/endianness.rs b/third_party/rust/packed_simd/tests/endianness.rs
  3446. --- a/third_party/rust/packed_simd/tests/endianness.rs
  3447. +++ b/third_party/rust/packed_simd/tests/endianness.rs
  3448. @@ -12,51 +12,51 @@ fn endian_indexing() {
  3449. assert_eq!(v.extract(1), 1);
  3450. assert_eq!(v.extract(2), 2);
  3451. assert_eq!(v.extract(3), 3);
  3452. }
  3453. #[cfg_attr(not(target_arch = "wasm32"), test)]
  3454. #[cfg_attr(target_arch = "wasm32", wasm_bindgen_test)]
  3455. fn endian_bitcasts() {
  3456. - #[cfg_attr(rustfmt, rustfmt_skip)]
  3457. + #[rustfmt::skip]
  3458. let x = i8x16::new(
  3459. 0, 1, 2, 3, 4, 5, 6, 7,
  3460. 8, 9, 10, 11, 12, 13, 14, 15,
  3461. );
  3462. let t: i16x8 = unsafe { mem::transmute(x) };
  3463. let e: i16x8 = if cfg!(target_endian = "little") {
  3464. i16x8::new(256, 770, 1284, 1798, 2312, 2826, 3340, 3854)
  3465. } else {
  3466. i16x8::new(1, 515, 1029, 1543, 2057, 2571, 3085, 3599)
  3467. };
  3468. assert_eq!(t, e);
  3469. }
  3470. #[cfg_attr(not(target_arch = "wasm32"), test)]
  3471. #[cfg_attr(target_arch = "wasm32", wasm_bindgen_test)]
  3472. fn endian_casts() {
  3473. - #[cfg_attr(rustfmt, rustfmt_skip)]
  3474. + #[rustfmt::skip]
  3475. let x = i8x16::new(
  3476. 0, 1, 2, 3, 4, 5, 6, 7,
  3477. 8, 9, 10, 11, 12, 13, 14, 15,
  3478. );
  3479. let t: i16x16 = x.into(); // simd_cast
  3480. - #[cfg_attr(rustfmt, rustfmt_skip)]
  3481. + #[rustfmt::skip]
  3482. let e = i16x16::new(
  3483. 0, 1, 2, 3, 4, 5, 6, 7,
  3484. 8, 9, 10, 11, 12, 13, 14, 15,
  3485. );
  3486. assert_eq!(t, e);
  3487. }
  3488. #[cfg_attr(not(target_arch = "wasm32"), test)]
  3489. #[cfg_attr(target_arch = "wasm32", wasm_bindgen_test)]
  3490. fn endian_load_and_stores() {
  3491. - #[cfg_attr(rustfmt, rustfmt_skip)]
  3492. + #[rustfmt::skip]
  3493. let x = i8x16::new(
  3494. 0, 1, 2, 3, 4, 5, 6, 7,
  3495. 8, 9, 10, 11, 12, 13, 14, 15,
  3496. );
  3497. let mut y: [i16; 8] = [0; 8];
  3498. x.write_to_slice_unaligned(unsafe {
  3499. slice::from_raw_parts_mut(&mut y as *mut _ as *mut i8, 16)
  3500. });
  3501. @@ -77,56 +77,61 @@ fn endian_load_and_stores() {
  3502. #[cfg_attr(not(target_arch = "wasm32"), test)]
  3503. #[cfg_attr(target_arch = "wasm32", wasm_bindgen_test)]
  3504. fn endian_array_union() {
  3505. union A {
  3506. data: [f32; 4],
  3507. vec: f32x4,
  3508. }
  3509. let x: [f32; 4] = unsafe { A { vec: f32x4::new(0., 1., 2., 3.) }.data };
  3510. - assert_eq!(x[0], 0_f32);
  3511. - assert_eq!(x[1], 1_f32);
  3512. - assert_eq!(x[2], 2_f32);
  3513. - assert_eq!(x[3], 3_f32);
  3514. + // As all of these are integer values within the mantissa^1 range, it
  3515. + // would be very unusual for them to actually fail to compare.
  3516. + #[allow(clippy::float_cmp)]
  3517. + {
  3518. + assert_eq!(x[0], 0_f32);
  3519. + assert_eq!(x[1], 1_f32);
  3520. + assert_eq!(x[2], 2_f32);
  3521. + assert_eq!(x[3], 3_f32);
  3522. + }
  3523. let y: f32x4 = unsafe { A { data: [3., 2., 1., 0.] }.vec };
  3524. assert_eq!(y, f32x4::new(3., 2., 1., 0.));
  3525. union B {
  3526. data: [i8; 16],
  3527. vec: i8x16,
  3528. }
  3529. - #[cfg_attr(rustfmt, rustfmt_skip)]
  3530. + #[rustfmt::skip]
  3531. let x = i8x16::new(
  3532. 0, 1, 2, 3, 4, 5, 6, 7,
  3533. 8, 9, 10, 11, 12, 13, 14, 15,
  3534. );
  3535. let x: [i8; 16] = unsafe { B { vec: x }.data };
  3536. - for i in 0..16 {
  3537. - assert_eq!(x[i], i as i8);
  3538. + for (i, v) in x.iter().enumerate() {
  3539. + assert_eq!(i as i8, *v);
  3540. }
  3541. - #[cfg_attr(rustfmt, rustfmt_skip)]
  3542. + #[rustfmt::skip]
  3543. let y = [
  3544. 15, 14, 13, 12, 11, 19, 9, 8,
  3545. 7, 6, 5, 4, 3, 2, 1, 0
  3546. ];
  3547. - #[cfg_attr(rustfmt, rustfmt_skip)]
  3548. + #[rustfmt::skip]
  3549. let e = i8x16::new(
  3550. 15, 14, 13, 12, 11, 19, 9, 8,
  3551. 7, 6, 5, 4, 3, 2, 1, 0
  3552. );
  3553. let z = unsafe { B { data: y }.vec };
  3554. assert_eq!(z, e);
  3555. union C {
  3556. data: [i16; 8],
  3557. vec: i8x16,
  3558. }
  3559. - #[cfg_attr(rustfmt, rustfmt_skip)]
  3560. + #[rustfmt::skip]
  3561. let x = i8x16::new(
  3562. 0, 1, 2, 3, 4, 5, 6, 7,
  3563. 8, 9, 10, 11, 12, 13, 14, 15,
  3564. );
  3565. let x: [i16; 8] = unsafe { C { vec: x }.data };
  3566. let e: [i16; 8] = if cfg!(target_endian = "little") {
  3567. [256, 770, 1284, 1798, 2312, 2826, 3340, 3854]
  3568. @@ -140,31 +145,36 @@ fn endian_array_union() {
  3569. #[cfg_attr(target_arch = "wasm32", wasm_bindgen_test)]
  3570. fn endian_tuple_access() {
  3571. type F32x4T = (f32, f32, f32, f32);
  3572. union A {
  3573. data: F32x4T,
  3574. vec: f32x4,
  3575. }
  3576. let x: F32x4T = unsafe { A { vec: f32x4::new(0., 1., 2., 3.) }.data };
  3577. - assert_eq!(x.0, 0_f32);
  3578. - assert_eq!(x.1, 1_f32);
  3579. - assert_eq!(x.2, 2_f32);
  3580. - assert_eq!(x.3, 3_f32);
  3581. + // As all of these are integer values within the mantissa^1 range, it
  3582. + // would be very unusual for them to actually fail to compare.
  3583. + #[allow(clippy::float_cmp)]
  3584. + {
  3585. + assert_eq!(x.0, 0_f32);
  3586. + assert_eq!(x.1, 1_f32);
  3587. + assert_eq!(x.2, 2_f32);
  3588. + assert_eq!(x.3, 3_f32);
  3589. + }
  3590. let y: f32x4 = unsafe { A { data: (3., 2., 1., 0.) }.vec };
  3591. assert_eq!(y, f32x4::new(3., 2., 1., 0.));
  3592. - #[cfg_attr(rustfmt, rustfmt_skip)]
  3593. + #[rustfmt::skip]
  3594. type I8x16T = (i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8);
  3595. union B {
  3596. data: I8x16T,
  3597. vec: i8x16,
  3598. }
  3599. - #[cfg_attr(rustfmt, rustfmt_skip)]
  3600. + #[rustfmt::skip]
  3601. let x = i8x16::new(
  3602. 0, 1, 2, 3, 4, 5, 6, 7,
  3603. 8, 9, 10, 11, 12, 13, 14, 15,
  3604. );
  3605. let x: I8x16T = unsafe { B { vec: x }.data };
  3606. assert_eq!(x.0, 0);
  3607. assert_eq!(x.1, 1);
  3608. @@ -178,37 +188,37 @@ fn endian_tuple_access() {
  3609. assert_eq!(x.9, 9);
  3610. assert_eq!(x.10, 10);
  3611. assert_eq!(x.11, 11);
  3612. assert_eq!(x.12, 12);
  3613. assert_eq!(x.13, 13);
  3614. assert_eq!(x.14, 14);
  3615. assert_eq!(x.15, 15);
  3616. - #[cfg_attr(rustfmt, rustfmt_skip)]
  3617. + #[rustfmt::skip]
  3618. let y = (
  3619. 15, 14, 13, 12, 11, 10, 9, 8,
  3620. 7, 6, 5, 4, 3, 2, 1, 0
  3621. );
  3622. let z: i8x16 = unsafe { B { data: y }.vec };
  3623. - #[cfg_attr(rustfmt, rustfmt_skip)]
  3624. + #[rustfmt::skip]
  3625. let e = i8x16::new(
  3626. 15, 14, 13, 12, 11, 10, 9, 8,
  3627. 7, 6, 5, 4, 3, 2, 1, 0
  3628. );
  3629. assert_eq!(e, z);
  3630. - #[cfg_attr(rustfmt, rustfmt_skip)]
  3631. + #[rustfmt::skip]
  3632. type I16x8T = (i16, i16, i16, i16, i16, i16, i16, i16);
  3633. union C {
  3634. data: I16x8T,
  3635. vec: i8x16,
  3636. }
  3637. - #[cfg_attr(rustfmt, rustfmt_skip)]
  3638. + #[rustfmt::skip]
  3639. let x = i8x16::new(
  3640. 0, 1, 2, 3, 4, 5, 6, 7,
  3641. 8, 9, 10, 11, 12, 13, 14, 15,
  3642. );
  3643. let x: I16x8T = unsafe { C { vec: x }.data };
  3644. let e: [i16; 8] = if cfg!(target_endian = "little") {
  3645. [256, 770, 1284, 1798, 2312, 2826, 3340, 3854]
  3646. @@ -219,28 +229,28 @@ fn endian_tuple_access() {
  3647. assert_eq!(x.1, e[1]);
  3648. assert_eq!(x.2, e[2]);
  3649. assert_eq!(x.3, e[3]);
  3650. assert_eq!(x.4, e[4]);
  3651. assert_eq!(x.5, e[5]);
  3652. assert_eq!(x.6, e[6]);
  3653. assert_eq!(x.7, e[7]);
  3654. - #[cfg_attr(rustfmt, rustfmt_skip)]
  3655. + #[rustfmt::skip]
  3656. #[repr(C)]
  3657. #[derive(Copy ,Clone)]
  3658. pub struct Tup(pub i8, pub i8, pub i16, pub i8, pub i8, pub i16,
  3659. pub i8, pub i8, pub i16, pub i8, pub i8, pub i16);
  3660. union D {
  3661. data: Tup,
  3662. vec: i8x16,
  3663. }
  3664. - #[cfg_attr(rustfmt, rustfmt_skip)]
  3665. + #[rustfmt::skip]
  3666. let x = i8x16::new(
  3667. 0, 1, 2, 3, 4, 5, 6, 7,
  3668. 8, 9, 10, 11, 12, 13, 14, 15,
  3669. );
  3670. let x: Tup = unsafe { D { vec: x }.data };
  3671. let e: [i16; 12] = if cfg!(target_endian = "little") {
  3672. [0, 1, 770, 4, 5, 1798, 8, 9, 2826, 12, 13, 3854]