Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@LStan
Copy link
Contributor

@LStan LStan commented Sep 16, 2025

Implemented SDK changes for SIMD-0334

@samkim-crypto samkim-crypto self-requested a review September 18, 2025 03:33
@LStan
Copy link
Contributor Author

LStan commented Sep 18, 2025

Clippy gives error only for not(solana), this lint was added only in rust 1.89.0. Should I fix it for both targets or only for not(solana)?

@LStan
Copy link
Contributor Author

LStan commented Sep 19, 2025

I fixed everywhere. It looks like clippy does not see code inside target_os = "solana".

Copy link
Contributor

@samkim-crypto samkim-crypto left a comment

Choose a reason for hiding this comment

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

Yep, all the changes look good to me. Let's just make the length check style more consistent for the Solana target and then this should be good.

.checked_rem(ALT_BN128_PAIRING_ELEMENT_SIZE)
.is_none()
{
if input.len() % ALT_BN128_PAIRING_ELEMENT_SIZE != 0 {
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's change this to the clippy style as was done in alt_bn128_versioned_pairing.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is what I did at first, but CI failed because is_multiple_of is unstable feature in sbf compiler.

Copy link
Contributor

Choose a reason for hiding this comment

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

Oh I see. Sorry, I was also wondering why you reverted there. I think the changes are good as is then.

.checked_rem(ALT_BN128_PAIRING_ELEMENT_SIZE)
.is_none()
{
if input.len() % ALT_BN128_PAIRING_ELEMENT_SIZE != 0 {
Copy link
Contributor

Choose a reason for hiding this comment

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

Same here.

@samkim-crypto samkim-crypto merged commit ca06d99 into anza-xyz:master Sep 22, 2025
25 checks passed
@LStan LStan deleted the SIMD-0334 branch October 30, 2025 13:19
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