about summary refs log tree commit diff
path: root/library/portable-simd
AgeCommit message (Collapse)AuthorLines
2025-07-05use `div_ceil` instead of manual logicFolkert de Vries-1/+1
2025-03-19Merge commit 'c14f2fc3eb69c164d8bf8d36d91ebd60bd5261e6' into ↵Caleb Zulawski-46/+96
sync-from-portable-simd-2025-03-19
2025-02-12Remove ignored `#[must_use]` attributes from portable-simdSamuel Tardieu-25/+0
The `#[must_use]` attribute has no effect when applied to methods in trait implementations.
2025-01-18Merge commit '3383cfbd3572465febc7a8f816a46304373de46a' into ↵Caleb Zulawski-388/+865
sync-from-portable-simd-2025-01-18
2024-12-24Bump `stdarch`daxpedda-11/+2
2024-10-21move strict provenance lints to new feature gate, remove old feature gatesRalf Jung-2/+1
2024-09-23stabilize const_intrinsic_copyRalf Jung-2/+0
2024-09-14simd_shuffle: require index argument to be a vectorRalf Jung-4/+12
2024-07-26Fix doc nitsJohn Arundel-23/+23
Many tiny changes to stdlib doc comments to make them consistent (for example "Returns foo", rather than "Return foo", per RFC1574), adding missing periods, paragraph breaks, backticks for monospace style, and other minor nits. https://github.com/rust-lang/rfcs/blob/master/text/1574-more-api-documentation-conventions.md#appendix-a-full-conventions-text
2024-06-23wasm64 build with target-feature=+simd128,+atomicswooden-worm-0/+2
2024-06-20Add blank lines after module-level `//!` comments.Nicholas Nethercote-0/+2
Most modules have such a blank line, but some don't. Inserting the blank line makes it clearer that the `//!` comments are describing the entire module, rather than the `use` declaration(s) that immediately follows.
2024-06-20Convert some module-level `//` and `///` comments to `//!`.Nicholas Nethercote-3/+2
This makes their intent and expected location clearer. We see some examples where these comments were not clearly separate from `use` declarations, which made it hard to understand what the comment is describing.
2024-06-05Rollup merge of #123168 - joshtriplett:size-of-prelude, r=AmanieuJubilee-2/+2
Add `size_of` and `size_of_val` and `align_of` and `align_of_val` to the prelude (Note: need to update the PR to add `align_of` and `align_of_val`, and remove the second commit with the myriad changes to appease the lint.) Many, many projects use `size_of` to get the size of a type. However, it's also often equally easy to hardcode a size (e.g. `8` instead of `size_of::<u64>()`). Minimizing friction in the use of `size_of` helps ensure that people use it and make code more self-documenting. The name `size_of` is unambiguous: the name alone, without any prefix or path, is self-explanatory and unmistakeable for any other functionality. Adding it to the prelude cannot produce any name conflicts, as any local definition will silently shadow the one from the prelude. Thus, we don't need to wait for a new edition prelude to add it.
2024-05-18Fix typos (taking into account review comments)blyxyas-1/+1
2024-05-13Add `size_of`, `size_of_val`, `align_of`, and `align_of_val` to the preludeJosh Triplett-2/+2
Many, many projects use `size_of` to get the size of a type. However, it's also often equally easy to hardcode a size (e.g. `8` instead of `size_of::<u64>()`). Minimizing friction in the use of `size_of` helps ensure that people use it and make code more self-documenting. The name `size_of` is unambiguous: the name alone, without any prefix or path, is self-explanatory and unmistakeable for any other functionality. Adding it to the prelude cannot produce any name conflicts, as any local definition will silently shadow the one from the prelude. Thus, we don't need to wait for a new edition prelude to add it. Add `size_of_val`, `align_of`, and `align_of_val` as well, with similar justification: widely useful, self-explanatory, unmistakeable for anything else, won't produce conflicts.
2024-04-24Stabilise `inline_const`Gary Guo-1/+0
2024-04-03rename `expose_addr` to `expose_provenance`joboet-13/+13
2024-04-02Rollup merge of #122935 - RalfJung:with-exposed-provenance, r=AmanieuJacob Pratt-16/+16
rename ptr::from_exposed_addr -> ptr::with_exposed_provenance As discussed on [Zulip](https://rust-lang.zulipchat.com/#narrow/stream/136281-t-opsem/topic/To.20expose.20or.20not.20to.20expose/near/427757066). The old name, `from_exposed_addr`, makes little sense as it's not the address that is exposed, it's the provenance. (`ptr.expose_addr()` stays unchanged as we haven't found a better option yet. The intended interpretation is "expose the provenance and return the address".) The new name nicely matches `ptr::without_provenance`.
2024-03-25Import the 2021 prelude in the core crateDaniel Paoliello-5/+0
2024-03-23also rename the SIMD intrinsicRalf Jung-2/+2
2024-03-23rename ptr::from_exposed_addr -> ptr::with_exposed_provenanceRalf Jung-14/+14
2024-03-22Merge commit 'cff979eec1ac0473fc4960ee6cde462c6aeda824' into ↵Daniel Paoliello-52/+505
sync-portable-simd-2024-03-22
2024-02-18Merge commit '649110751ef4f27440d7cc711b3e07d11bf02d4a' into ↵Caleb Zulawski-354/+218
sync-portable-simd-2024-02-18
2024-01-30Disable conversions between portable_simd and stdarch on big-endian ARMAmanieu d'Antras-3/+6
stdarch no longer provide SIMD on big-endian ARM due to https://github.com/rust-lang/stdarch/issues/1484
2023-12-14Fix target_feature config in portable-simdUrgau-1/+1
2023-12-04portable-simd: add missing feature gateRalf Jung-1/+1
2023-12-02Remove link to core::arch::x86_64Caleb Zulawski-1/+1
2023-11-26Merge commit 'e0e9a4517f9fc021283514da387e70a56061bd3e' into ↵Caleb Zulawski-1006/+2107
sync-portable-simd-2023-11-19
2023-10-22use visibility to check unused imports and delete some stmtsbohan-1/+0
2023-07-31remove repetitive wordscui fliter-1/+1
Signed-off-by: cui fliter <imcusg@gmail.com>
2023-07-07Sync portable-simd to 2023 July 07Jubilee Young-133/+338
Sync up to rust-lang/portable-simd@7c7dbe0c505ccbc02ff30c1e37381ab1d47bf46f
2023-05-31Explicit set `workspace.resolver = "1"`Weihang Lo-1/+1
rust-lang/cargo#10910 starts emitting warning if resolver is not set for 2021 edition package. We want to surpress the warning for now.
2023-05-16Hide repr attribute from doc of types without guaranteed reprDavid Tolnay-1/+1
2023-05-11Correct swizzle_dyn cfg for armv7 neonJubilee Young-1/+1
2023-05-11Sync portable-simd to 2023 May 10Jubilee Young-723/+2177
Sync up to rust-lang/portable-simd@852762563aa890286eda2f668b8af30f8aa84216
2023-04-28Make sure that signatures aren't accidental refinementsMichael Goulet-1/+1
2023-04-12remove some unneeded importsKaDiWa-1/+1
2023-03-03Match unmatched backticks in library/est31-1/+1
2023-01-21Remove unnecessary `&format!`Nikolai Vazquez-1/+1
These were likely from before the `PartialEq<str>` impl for `&String`.
2022-11-06Fix rustdoc lintsMark Rousskov-2/+2
2022-09-05separate the receiver from arguments in HIR under /clippyTakayuki Maeda-5/+1
2022-08-31Fix a bunch of typoDezhi Wu-1/+1
This PR will fix some typos detected by [typos]. I only picked the ones I was sure were spelling errors to fix, mostly in the comments. [typos]: https://github.com/crate-ci/typos
2022-07-20Sync core::simd up to ↵Jubilee Young-881/+1606
rust-lang/portable-simd@2e081db92aa3ee0a4563bc28ce01bdad5b1b2efd
2022-05-27Finish bumping stage0Mark Rousskov-20/+0
It looks like the last time had left some remaining cfg's -- which made me think that the stage0 bump was actually successful. This brings us to a released 1.62 beta though.
2022-04-12portable-simd: use simd_arith_offset to avoid ptr-int transmutationRalf Jung-0/+15
2022-03-12Sync portable-simd to ↵Jubilee Young-104/+213
rust-lang/portable-simd@72df4c45056a8bc0d1b3f06fdc828722177f0763
2022-03-10Use implicit capture syntax in format_argsT-O-R-U-S-2/+2
This updates the standard library's documentation to use the new syntax. The documentation is worthwhile to update as it should be more idiomatic (particularly for features like this, which are nice for users to get acquainted with). The general codebase is likely more hassle than benefit to update: it'll hurt git blame, and generally updates can be done by folks updating the code if (and when) that makes things more readable with the new format. A few places in the compiler and library code are updated (mostly just due to already having been done when this commit was first authored).
2022-03-02Fix unused_doc_comments lint errorsGuillaume Gomez-3/+4
2022-03-01Rollup merge of #94452 - workingjubilee:sync-simd-bitmasks, r=workingjubileeDylan DPC-123/+438
Sync portable-simd for bitmasks &c. In the ideal case, where everything works easily and nothing has to be rearranged, it is as simple as: - `git subtree pull -P library/portable-simd https://github.com/rust-lang/portable-simd - ${branch}` - write the commit message - `python x.py test --stage 1` to make sure it runs - `git push` to your PR-to-rustc branch If anything borks up this flow, you can fix it with sufficient git wizardry but you are usually better off going back to the source, fixing it, and starting over, before you open the PR. r? `@calebzulawski`
2022-02-28Sync rust-lang/portable-simd@5f49d4c8435a25d804b2f375e949cb25479f5be9Jubilee Young-123/+438