Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
205: Add leading_ones and trailing_ones to PrimInt r=cuviper a=clarfonthey Since this was only stabilised in 1.46.0, it falls back to a naïve version on older versions. It seems unlikely that the version in libstd will ever be different from calling the zeros versions on !self, but for future-proofing, this defers to the libstd versions anyway. Co-authored-by: ltdk <usr@ltdk.xyz>
- Loading branch information
Showing
2 changed files
with
46 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters