Skip to content

Commit e4560e8

Browse files
committed
Add SSE4a and TBM with MSRV 1.91
1 parent 4c67a23 commit e4560e8

File tree

11 files changed

+13
-18
lines changed

11 files changed

+13
-18
lines changed

.clippy.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ trivial-copy-size-limit = 16
99

1010
# END LINEBENDER LINT SET
1111

12-
doc-valid-idents = ["ShangMi", ".."]
12+
doc-valid-idents = ["ShangMi", "SSE4a", ".."]

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ env:
33
# version like 1.70. Note that we only specify MAJOR.MINOR and not PATCH so that bugfixes still
44
# come automatically. If the version specified here is no longer the latest stable version,
55
# then please feel free to submit a PR that adjusts it along with the potential clippy fixes.
6-
RUST_STABLE_VER: "1.90" # In quotes because otherwise (e.g.) 1.70 would be interpreted as 1.7
6+
RUST_STABLE_VER: "1.91" # In quotes because otherwise (e.g.) 1.70 would be interpreted as 1.7
77
# The purpose of checking with the minimum supported Rust toolchain is to detect its staleness.
88
# If the compilation fails, then the version specified here needs to be bumped up to reality.
99
# Be sure to also update the rust-version property in the workspace Cargo.toml file,
1010
# plus all the README.md files of the affected packages.
11-
RUST_MIN_VER: "1.89"
11+
RUST_MIN_VER: "1.91"
1212
# List of packages that will be checked with the minimum supported Rust version.
1313
# This should be limited to packages that are intended for publishing.
1414
RUST_MIN_VER_PKGS: "-p fearless_simd -p fearless_simd_core"

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ You can find its changes [documented below](#030-2025-10-14).
1313

1414
## [Unreleased]
1515

16-
This release has an [MSRV][] of 1.89.
16+
This release has an [MSRV][] of 1.91.
1717

1818
### Changed
1919

Cargo.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@ license = "Apache-2.0 OR MIT"
1515
repository = "https://github.com/linebender/fearless_simd"
1616
# Keep in sync with RUST_MIN_VER in .github/workflows/ci.yml, with the relevant README.md files
1717
# and with the MSRV in the `Unreleased` section of CHANGELOG.md.
18-
# When increasing past 1.91, also uncomment the `discontinued::tbm` and `sse::sse4a` modules/imports in Fearless SIMD Core.
19-
rust-version = "1.89"
18+
rust-version = "1.91"
2019

2120
[workspace.lints]
2221

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ It benefited from conversations with Luca Versari, though he is not responsible
5959

6060
## Minimum supported Rust Version (MSRV)
6161

62-
This version of Fearless SIMD has been verified to compile with **Rust 1.89** and later.
62+
This version of Fearless SIMD has been verified to compile with **Rust 1.91** and later.
6363

6464
Future versions of Fearless SIMD might increase the Rust version requirement.
6565
It will not be treated as a breaking change and as such can even happen with small patch releases.

fearless_simd/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ At least one of `std` and `libm` is required; `std` overrides `libm`.
125125

126126
## Minimum supported Rust Version (MSRV)
127127

128-
This version of Fearless SIMD has been verified to compile with **Rust 1.89** and later.
128+
This version of Fearless SIMD has been verified to compile with **Rust 1.91** and later.
129129

130130
Future versions of Fearless SIMD might increase the Rust version requirement.
131131
It will not be treated as a breaking change and as such can even happen with small patch releases.

fearless_simd_core/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ with `#[target_feature]`, and a call to this newly generated function.
7878

7979
## Minimum supported Rust Version (MSRV)
8080

81-
This version of Fearless SIMD has been verified to compile with **Rust 1.89** and later.
81+
This version of Fearless SIMD has been verified to compile with **Rust 1.91** and later.
8282

8383
Future versions of Fearless SIMD might increase the Rust version requirement.
8484
It will not be treated as a breaking change and as such can even happen with small patch releases.

fearless_simd_core/src/x86/discontinued/mod.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,5 @@
88
//!
99
//! For more information, see <https://en.wikipedia.org/wiki/List_of_discontinued_x86_instructions>
1010
11-
// These will be stabilised in 1.91.
12-
// mod tbm;
13-
// pub use tbm::Tbm;
11+
mod tbm;
12+
pub use tbm::Tbm;

fearless_simd_core/src/x86/discontinued/tbm.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ impl Debug for Tbm {
4242
// Safety: This token can only be constructed if you have proof that all the requisite
4343
// target feature is enabled.
4444
unsafe impl TargetFeatureToken for Tbm {
45-
const FEATURES: &[&str] = &["tbm", ];
45+
const FEATURES: &[&str] = &["tbm"];
4646

4747
#[inline(always)]
4848
fn vectorize<R>(self, f: impl FnOnce() -> R) -> R {
@@ -88,7 +88,6 @@ impl Tbm {
8888
}
8989
}
9090

91-
9291
const _: () = {
9392
assert!(
9493
core::mem::size_of::<Tbm>() == 0,

fearless_simd_core/src/x86/sse/mod.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,8 @@ pub use sse3::Sse3;
2929
mod ssse3;
3030
pub use ssse3::SupplementalSse3;
3131

32-
// These will be stabilised in 1.91.
33-
// mod sse4a;
34-
// pub use sse4a::Sse4a;
32+
mod sse4a;
33+
pub use sse4a::Sse4a;
3534

3635
mod sse4_1;
3736
pub use sse4_1::Sse4_1;

0 commit comments

Comments
 (0)