-
Notifications
You must be signed in to change notification settings - Fork 73
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
Underlying slice access to avoid intermediate buffers #346
Comments
If you use In general, special transmutation related things are not as likely with the portable simd api so that there's not duplication with the eventual APIs from the safe-transmute project. |
Thanks @Lokathor, I can also use code similar to what I posted. I was thinking this might be something very useful to integrate into the main package as it seems fairly core. |
|
@burrbull thanks, I’ll look into that and raise there if needed. Sorry, I vaguely remembered plans for something more official, but couldn’t find it when googling and searching crates.io. |
Oh, sorry, I didn't even realize that this is the packed_simd repo I just assumed it was the portable-simd repo XD |
Hi,
I've noticed the aligned slice copy methods essentially internally cast the structure to a slice. I'd find it very useful for processing file data in a Simd structure to have read/write access to this slice, to avoid an intermediate copy.
I currently have to do this:
I'd like to do this:
Is there any reason you couldn't do something like this (although maybe without the
unsafe
code by using knowledge of the underlying data structures):The text was updated successfully, but these errors were encountered: