Skip to content

Conversation

@theirix
Copy link
Contributor

@theirix theirix commented Dec 7, 2025

Which issue does this PR close?

Rationale for this change

leading_zeros exists for other integer types, and in wide i128 as well. This PR makes it public and tested. It's worth having it as a public part of the struct.

What changes are included in this PR?

  • Make the function public
  • Unit tests
  • Function documentatioon

Are these changes tested?

Yes, via unit tests.

Are there any user-facing changes?

No

@github-actions github-actions bot added the arrow Changes to the arrow crate label Dec 7, 2025
@theirix theirix marked this pull request as ready for review December 7, 2025 20:54
- Make `i256::leading_zeros` public to align with other integer types
- Add function documentation
- Add unit tests
@theirix theirix force-pushed the i256-leading-zeros branch from 1fbb635 to 8307c5c Compare December 7, 2025 21:58
Copy link
Contributor

@alamb alamb left a comment

Choose a reason for hiding this comment

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

looks good to me -- thank you @theirix

@alamb
Copy link
Contributor

alamb commented Dec 10, 2025

I merged up to resolve some merge conflicts

@alamb alamb merged commit 8cd37a2 into apache:main Dec 10, 2025
29 of 30 checks passed
@alamb
Copy link
Contributor

alamb commented Dec 10, 2025

Thanks again @theirix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

arrow Changes to the arrow crate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

arrow-buffer: make i256::leading_zeros public

2 participants