Skip to content

Conversation

@theirix
Copy link

@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
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

1 participant