rust-lang / rust-lang/portable-simd
Implement type casts (non-transmute & transmute)
Open
Nobody has claimed this yet.
C-feature-request
- Dominant language
- Rust
- Stars
- 1.1k
- Forks
- 108
- Avg merge
- 22h 53m
- Merged PRs (30d)
- 3
Description
I wasn't able to find type casts, we need them:
fn f(v: f32x16) -> i8x16 {
v.cast() // doesn't currently work
}
This is different than transmuting (which is something we also need; we're planning on mostly relying on safe-transmute for this).
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The issue names no files, tests, or entry points. Start by reviewing the issue discussion and the existing portable SIMD cast and transmute support, then determine the intended semantics for f32x16 to i8x16 casts and how they differ from transmutation. Done means both requested operations have an agreed design and coverage for the example behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- performance
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100