-
Notifications
You must be signed in to change notification settings - Fork 147
remove the portable simd f16 patch #1675
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
333 changes: 0 additions & 333 deletions
333
patches/0001-portable-simd-Disable-f16-usage-in-portable-simd.patch
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,49 @@ | ||
| From 61246af14448350fbe8272dea9c98624c5fd5ab1 Mon Sep 17 00:00:00 2001 | ||
| From: Folkert de Vries <folkert@folkertdev.nl> | ||
| Date: Wed, 29 Jul 2026 15:28:16 +0200 | ||
| Subject: [PATCH] gate `std_float` f16 tests | ||
|
|
||
| --- | ||
| crates/std_float/Cargo.toml | 8 ++++++++ | ||
| crates/std_float/tests/float.rs | 3 +++ | ||
| 2 files changed, 11 insertions(+) | ||
|
|
||
| diff --git a/crates/std_float/Cargo.toml b/crates/std_float/Cargo.toml | ||
| index 0896094e..08360a45 100644 | ||
| --- a/crates/std_float/Cargo.toml | ||
| +++ b/crates/std_float/Cargo.toml | ||
| @@ -18,3 +18,11 @@ wasm-bindgen-test = "0.3" | ||
| [features] | ||
| default = ["as_crate"] | ||
| as_crate = [] | ||
| + | ||
| +[lints.rust.unexpected_cfgs] | ||
| +level = "warn" | ||
| +check-cfg = [ | ||
| + # Internal features aren't marked known config by default, we use these to | ||
| + # gate tests. | ||
| + 'cfg(target_has_reliable_f16_math)', | ||
| +] | ||
| diff --git a/crates/std_float/tests/float.rs b/crates/std_float/tests/float.rs | ||
| index d4d8a909..0ba08aa7 100644 | ||
| --- a/crates/std_float/tests/float.rs | ||
| +++ b/crates/std_float/tests/float.rs | ||
| @@ -1,5 +1,7 @@ | ||
| #![feature(portable_simd)] | ||
| #![feature(f16)] | ||
| +#![allow(internal_features)] | ||
| +#![feature(cfg_target_has_reliable_f16_f128)] | ||
|
|
||
| macro_rules! unary_test { | ||
| { $scalar:tt, $($func:tt),+ } => { | ||
| @@ -87,6 +89,7 @@ macro_rules! impl_tests { | ||
| } | ||
| } | ||
|
|
||
| +#[cfg(target_has_reliable_f16_math)] | ||
| impl_tests! { f16 } | ||
| impl_tests! { f32 } | ||
| impl_tests! { f64 } | ||
| -- | ||
| 2.43.0 | ||
|
|
||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.