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

explicit simd store -- opposite of Simd::from_slice #324

Closed
programmerjake opened this issue Dec 16, 2022 · 2 comments · Fixed by #331
Closed

explicit simd store -- opposite of Simd::from_slice #324

programmerjake opened this issue Dec 16, 2022 · 2 comments · Fixed by #331

Comments

@programmerjake
Copy link
Member

currently we have to either cast the dest pointer to Simd<T, N> and use write_unaligned or use an array-typed store, this is somewhat likely to cause issues at some point. plus, having a function on Simd is nicer than having to figure out to use *dest = *val.as_array().

@calebzulawski
Copy link
Member

There is also slice.copy_from_slice(vector.as_slice()).

@programmerjake
Copy link
Member Author

There is also slice.copy_from_slice(vector.as_slice()).

yes, but that also isn't a vector store, it's basically an array store again.

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 a pull request may close this issue.

2 participants