Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add popcount and popcnt as doc aliases for count_ones methods. #80097

Merged
merged 1 commit into from
Dec 17, 2020

Commits on Dec 16, 2020

  1. Add popcount and popcnt as doc aliases for count_ones methods.

    Integer types have a `count_ones` method that end up calling
    `intrinsics::ctpop`.
    On some architectures, that intrinsic is translated as a corresponding
    CPU instruction know as "popcount" or "popcnt".
    
    This PR makes it so that searching for those names in rustdoc shows those methods.
    
    CC https://blog.rust-lang.org/2020/11/19/Rust-1.48.html#adding-search-aliases
    SimonSapin committed Dec 16, 2020
    Configuration menu
    Copy the full SHA
    f365de3 View commit details
    Browse the repository at this point in the history