[naga]: Add no_std polyfill for round_ties_even for f32 and f64#7585
Merged
Conversation
no_std polyfill for round_ties_even for f32 and f64no_std polyfill for round_ties_even for f32 and f64
6 tasks
Member
|
This PR will actually fix |
226490c to
861d264
Compare
cwfitzgerald
requested changes
Apr 27, 2025
|
|
||
| # Check with all features except "std". | ||
| cargo clippy --target ${{ matrix.target }} ${{ matrix.extra-flags }} -p wgpu-types --no-default-features --features strict_asserts,fragile-send-sync-non-atomic-wasm,serde,counters | ||
| cargo clippy --target ${{ matrix.target }} ${{ matrix.extra-flags }} -p naga --no-default-features --features dot-out,compact |
Member
There was a problem hiding this comment.
This comment isn't correct for naga - I think you should pull them out into their own lines instead of attaching them.
Contributor
Author
There was a problem hiding this comment.
I've just updated the comments to be more broad. I do like the two groups (no features, all compatible features), but I'm happy to split it up (either crate by crate or just each line on it's own)
73bad8d to
fdca21d
Compare
Update comments around `no_std` CI task
fdca21d to
f7ed1ba
Compare
sharmajai
pushed a commit
to sharmajai/wgpu
that referenced
this pull request
Oct 12, 2025
…4` (gfx-rs#7585) * Rely on `libm` for a `no_std` alternative to `round_ties_even` Update comments around `no_std` CI task * Update Cargo.toml * Feedback Co-Authored-By: Connor Fitzgerald <connorwadefitzgerald@gmail.com> --------- Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com>
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Connections
Description
round_ties_evenf16polyfill forf32andf64usingnum_traits::float::FloatCore, specifically forno_stdsupportnagato the Checkno_stdCI action now that it is MVP compatibleTesting
Squash or Rebase?
Squash
Checklist
cargo fmt.RunN/Ataplo format.cargo clippy --tests. If applicable, add:--target wasm32-unknown-unknowncargo xtask testto run tests.CHANGELOG.mdentry.Notes
f32::round_ties_evenorf64::round_ties_even, since I don't believe there is substantial value added with such a feature.f16polyfill. However, there are substantial tests for this exact method in this num-traits PR I opened. This PR would just allow us to continue working onno_stdsupport while we wait for that PR to be accepted (or not).