Skip to content

Conversation

@tarcieri
Copy link
Member

When chunking slices into words, instead of handling the remainder by iterating over it an element at a time, converts the remainder into a Word and applies either Cmov or CmovEq to the word.

For Cmov, the computed Word is used to fill dst_remainder.

The implementation is generic and used with u8, u16, and u32.

@tarcieri tarcieri force-pushed the cmov/improved-slice-remainder-handling branch 3 times, most recently from e9cfb0c to 1f64f5a Compare January 17, 2026 19:02
When chunking slices into words, instead of handling the remainder by
iterating over it an element at a time, converts the remainder into a
`Word` and applies either `Cmov` or `CmovEq` to the word.

For `Cmov`, the computed `Word` is used to fill `dst_remainder`.

The implementation is generic and used with `u8`, `u16`, and `u32`.
@tarcieri tarcieri force-pushed the cmov/improved-slice-remainder-handling branch from 1f64f5a to 7bc7c82 Compare January 17, 2026 19:07
@tarcieri tarcieri merged commit 7c9ca7b into master Jan 17, 2026
22 checks passed
@tarcieri tarcieri deleted the cmov/improved-slice-remainder-handling branch January 17, 2026 19:13
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.

2 participants