Skip to content
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

Replace PtrLen/MutPtrLen with SrcDest for vectorized op inputs/outputs #599

Merged
merged 1 commit into from
Feb 16, 2025

Conversation

robertknight
Copy link
Owner

Vectorized operations can operate either in-place on a single mutable slice, or a pair of source and destination slices where the destination is uninitialized. To handle both cases with the same implementation, slice-like types without the aliasing guarantees were used. Replace this with a SrcDest type which models the possible cases better in the type system and is a step towards reducing unsafety in vectorized ops.

Part of #549.

Vectorized operations can operate either in-place on a single mutable slice, or
a pair of source and destination slices where the destination is uninitialized.
To handle both cases with the same implementation, slice-like types without the
aliasing guarantees were used. Replace this with a `SrcDest` type which models
the possible cases better in the type system and is a step towards reducing
unsafety in vectorized ops.

Part of #549.
@robertknight robertknight merged commit 8674c35 into main Feb 16, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant