Commit 8cd37a2
arrow-buffer: make i256::leading_zeros public and tested (#8964)
# Which issue does this PR close?
- Closes #8965.
# 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
Co-authored-by: Andrew Lamb <andrew@nerdnetworks.org>1 parent 112e581 commit 8cd37a2
1 file changed
+18
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
583 | 583 | | |
584 | 584 | | |
585 | 585 | | |
586 | | - | |
| 586 | + | |
| 587 | + | |
587 | 588 | | |
588 | 589 | | |
589 | 590 | | |
| |||
1336 | 1337 | | |
1337 | 1338 | | |
1338 | 1339 | | |
| 1340 | + | |
| 1341 | + | |
| 1342 | + | |
| 1343 | + | |
| 1344 | + | |
| 1345 | + | |
| 1346 | + | |
| 1347 | + | |
| 1348 | + | |
| 1349 | + | |
| 1350 | + | |
| 1351 | + | |
| 1352 | + | |
| 1353 | + | |
| 1354 | + | |
| 1355 | + | |
1339 | 1356 | | |
1340 | 1357 | | |
1341 | 1358 | | |
| |||
0 commit comments