about summary refs log tree commit diff
path: root/library/stdarch/crates
AgeCommit message (Collapse)AuthorLines
2025-07-08remove unneeded castFolkert de Vries-4/+4
2025-07-08shorten array literalsFolkert de Vries-104/+28
2025-07-08remote intermediate assignmentFolkert de Vries-51/+23
2025-07-08fix whitespace in `aarch64.spec.yml`Folkert de Vries-27/+27
2025-07-07Use `simd_funnel_sh{l,r}` and `simd_round_ties_even` to remove uses of LLVM ↵sayantn-163/+47
intrinsics
2025-07-07some clippy fixesMarijn Schouten-14/+12
2025-07-07std_detect: RISC-V Linux: Ergonomic querying with `riscv_hwprobe`Tsukasa OI-41/+42
Originally, we used an array of `riscv_hwprobe` directly and indexed using raw numbers, making correspondence between the index and the query key less obvious. We also frequently used `out[idx].key != -1` to test whether the key is supported by the `riscv_hwprobe` system call (on the Linux kernel version we are testing) but we'd better to integrate with an operation to retrieve the value. This commit improves the ergonomics of feature querying by: 1. Utilizing macros to a. enable indexing by identifier names and b. encapsulate accesses to the `riscv_hwprobe` array to query and 2. New method `riscv_hwprobe::get()` returning `Option<u64>`, integrating availability checking and value retrieval. It also removes `has_ima` for now because it's redundant if we only need to test for single base behavior.
2025-07-07Update README.mdkilavvy-1/+1
- Update ui.md - Update type-alias-impl-trait.md - Update README.md
2025-07-07Remove std-detect dev dependency in core_archJakub Beránek-5/+2
2025-07-07Mark `avx` broadcast intrinsics as safeokaneco-7/+7
2025-07-07Use simd_extract! macro instead of calling simd_extract directlyltdk-6/+6
2025-07-07Update stabilization version of certain x86 intrinsics to 1.89Amanieu d'Antras-27/+27
These were left as `CURRENT_RUSTC_VERSION` in the submodule.
2025-07-07use `is_multiple_of` to check if an addr is alignedFolkert de Vries-4/+8
2025-07-03std_detect: Tidying of slice lengthTsukasa OI-2/+1
We don't need to put the length of the `riscv_hwprobe` array into a variable. This commit removes that variable and gives the length of the output slice to the `__riscv_hwprobe` directly.
2025-06-19s390x: add feature detection for the z17 target featuresFolkert de Vries-56/+97
2025-06-19the `generic_arg_infer` feature is now stable on nightlyFolkert de Vries-1/+0
2025-06-17Testsatiscugcat-17/+14
2025-06-17Ran cargo fmt, removed unexpected charactersatiscugcat-28/+25
2025-06-17Moved const fn outside unsafe blocksatiscugcat-11/+13
2025-06-17Changed implementation of _mm{256,512}_alignr_epi8 to match that of ↵satiscugcat-350/+149
_mm_alignr_epi8 in ssse3.rs, also removed the import of the unreachable unchecked hint as it was no longer necessary
2025-06-17Changed implementation of bsrli in avx512.rs to match that of bslli, fixing ↵satiscugcat-195/+78
a bug in the process.
2025-06-17Changed the implementation of bsrli to match bslli in avx2 intrinsicssatiscugcat-132/+46
2025-06-17Fixing mistake in previous commitAniket Mishra-1/+1
2025-06-17Removal of redundant mod operation in _mm256_alignr_epi8Aniket Mishra-1/+1
2025-06-17Fix in erroneous implementation of _mm256_bsrli_epi128Aniket Mishra-1/+1
Fixing the issue mentioned in issue #1822 of rust-lang/stdarch.
2025-06-11Fixes to compile with latest Rust nightlyAmanieu d'Antras-5/+3
2025-06-09Darwin AArch64 detection updateLaine Taffin Altman-0/+8
Synchronizes the lists of detectable features with macOS 15.5 “Sequoia” as of June 9, 2025.
2025-06-09Remove `compiler-builtins` from `rustc-dep-of-std` dependenciesTrevor Gross-2/+0
Since [1], this will come automatically from `rustc-std-workspace-core` and the crates.io dependency should no longer be specified. [1]: https://github.com/rust-lang/rust/pull/141993
2025-06-09add s390x z17 target featuresFolkert de Vries-0/+15
2025-06-02Stabilize AVX512 intrinsicsAmanieu d'Antras-4593/+4593
FCP completed in tracking issue rust-lang/rust#111137
2025-06-02Fix incorrect intrinsic name in WASMsayantn-2/+2
2025-06-02Fix incorrect intrinsic name in X86sayantn-11/+11
2025-06-02Remove uses of deprecated type-specific pointers from ARMsayantn-380/+380
2025-06-02Use correct LLVM intrinsic for `vmull` and `vaddv`sayantn-36/+36
2025-06-02Use rust intrinsics for more ARM intrinsicssayantn-527/+73
2025-06-02Mark Neon f16 vectors as unstableAdam Gemmell-4/+9
2025-06-02Revert vbsl[q]_f16 to unstableAdam Gemmell-18/+3
2025-06-01RISC-V: Linux 6.15 `riscv_hwprobe` supportTsukasa OI-3/+39
This commit adds support for `riscv_hwprobe` on the Linux kernel 6.15. It adds feature detection of 8 extensions (4 of them are new in this). Existing RISC-V Extensions: 1. "Zicntr" 2. "Zihpm" 3. "Zalrsc" 4. "Zaamo" New RISC-V Extensions: 5. "Zicbom" 6. "Zfbfmin" 7. "Zvfbfmin" 8. "Zvfbfwma"
2025-06-01use `simd_bitreverse` on `aarch64`Folkert de Vries-21/+5
2025-05-31intrinsic-test: Reverse `has_constraints()` conditionTsukasa OI-1/+1
It seems it returns true when *no* constraints are found, opposite to the expected behavior of the function name. This commit reverses condition as the name suggests.
2025-05-31intrinsic-test: Use `c_prefix` to generate type namesTsukasa OI-1/+1
To make the type names to test correct, this commit replaces occurrences of `rust_prefix` to `c_prefix` where necessary.
2025-05-31Stabilize `sha512`, `sm3` and `sm4` intrinsics and runtime detectionsayantn-13/+13
2025-05-31Stabilize keylocker intrinsics and runtime detectionsayantn-14/+14
2025-05-31intrinsic-test: Modernization of the coding styleTsukasa OI-95/+91
It modernizes the coding style of the crate intrinsic-test by fixing Clippy warnings. Clippy: rust version 1.89.0-nightly (6f6971078 2025-05-28) Number of Fixed Warnings: 36/36
2025-05-31stdarch-verify: Modernization of the coding styleTsukasa OI-0/+2
It modernizes the coding style of the crate stdarch-verify by dealing with Clippy warnings (allows clippy::collapsible_if but review may be required for later changes). Clippy: rust version 1.89.0-nightly (6f6971078 2025-05-28) Number of Fixed Warnings: 4/4
2025-05-31stdarch-test: Modernization of the coding styleTsukasa OI-1/+1
It modernizes the coding style of the crate stdarch-test by fixing Clippy warnings. Clippy: rust version 1.89.0-nightly (6f6971078 2025-05-28) Number of Fixed Warnings: 1/1
2025-05-31stdarch-gen-loongarch: Modernization of the coding styleTsukasa OI-1/+1
It modernizes the coding style of the crate stdarch-gen-loongarch by fixing Clippy warnings. Clippy: rust version 1.89.0-nightly (6f6971078 2025-05-28) Number of Fixed Warnings: 1/1 Confirmed that the exact same code will be generated (note that, generated.rs in the repository is *not* an exact output but some spaces removed).
2025-05-31stdarch-gen-arm: Modernization of the coding styleTsukasa OI-170/+76
It modernizes the coding style of the crate stdarch-gen-arm by fixing Clippy warnings (except clippy::{collapsible_if,obfuscated_if_else} that might make the program look worse as a result of "fixing" warnings). Clippy: rust version 1.89.0-nightly (6f6971078 2025-05-28) Number of Fixed Warnings: 84/84 Note: Rust Analyzer double counts one of the Clippy warnings so it reduces 85 warnings (as reported by the Rust Analyzer). This commit also applies similar technique used to resolve Clippy warnings but also simplifies identifier name formatting and makes reading easier. Confirmed that the exact same code will be generated.
2025-05-30RISC-V: Linux: Imply Zicntr from the IMA base behaviorTsukasa OI-6/+4
As the author confirmed as in: <https://lists.infradead.org/pipermail/linux-riscv/2025-May/070844.html>, runtime detection of the Zicntr extension (as in the Linux kernel 6.15) is currently (and technically) redundant on the current base IMA behavior (although can be meaningful if new base behavior is added). This commit implies the Zicntr extension from the base IMA behavior.
2025-05-30Add back `std_detect_env_override`sayantn-2/+68