Skip to content

Conversation

@LaurenzV
Copy link
Collaborator

@LaurenzV LaurenzV commented Jan 3, 2026

As per title, by having this, we don't have to store them back using copy_from_slice (which may or may not optimize into vector store instructions) but can use methods that use the corresponding intrinsics under the hood.

@LaurenzV LaurenzV requested review from Ralith and valadaptive January 3, 2026 09:29
@LaurenzV
Copy link
Collaborator Author

LaurenzV commented Jan 3, 2026

(Will add changeling entry upon approval.)

Comment on lines +170 to +173
/// Store a SIMD vector into a slice.
///
/// The slice must be the proper width.
fn store_slice(&self, slice: &mut [Self::Element]);
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we should rename to store_into_slice?

@LaurenzV LaurenzV changed the title Add store methods to use intrinsics for storing vectors back to memory Add methods for storing vectors back to memory Jan 3, 2026
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