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

Reduce amount of unsafe #540

Merged
merged 6 commits into from
Jan 10, 2024
Merged

Reduce amount of unsafe #540

merged 6 commits into from
Jan 10, 2024

Conversation

newpavlov
Copy link
Member

@newpavlov newpavlov commented Jan 10, 2024

Also removes no longer necessary TryInto imports.

@@ -154,7 +154,7 @@ unsafe fn rounds_0_63_avx2(

for i in 1..5 {
for j in 0..8 {
let t = _mm_loadu_si128(K64.as_ptr().add(k64x4_idx) as *const u64 as *const _);
let t = _mm_loadu_si128(K64.as_ptr().add(k64x4_idx).cast());
Copy link
Member

Choose a reason for hiding this comment

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

Oh huh, neat

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah, it's one of relatively old (introduced in 1.38) goodies which is really nice.

@newpavlov newpavlov merged commit 4d7fb0e into master Jan 10, 2024
161 checks passed
@newpavlov newpavlov deleted the reduce_unsafe branch January 10, 2024 21:00
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.

None yet

2 participants