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

simplify prev implementation #23

Merged
merged 1 commit into from
Jan 29, 2024
Merged

Conversation

Validark
Copy link
Collaborator

@Validark Validark commented Jan 27, 2024

Reduce lines of code :)

For posterity, I also wrote this version just in case our standard library function gets removed.

        @shuffle(u8, chunk, prev_chunk, std.simd.join(
            ~(std.simd.iota(i32, N) + @as(@Vector(N, i32), @splat(chunk_len - N))),
            std.simd.iota(i32, chunk_len - N),
        ));

@travisstaloch
Copy link
Owner

Thanks for the patch and for the fallback version. I'm going to merge this now. As with the other patch, will test locally soon checking for slowdowns.

@travisstaloch travisstaloch merged commit 174b7f1 into main Jan 29, 2024
0 of 2 checks passed
@travisstaloch travisstaloch deleted the simplify-prev-implementation branch February 2, 2024 04:33
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