diff options
| author | Simon Sapin <simon.sapin@exyr.org> | 2020-12-16 23:51:18 +0100 |
|---|---|---|
| committer | Simon Sapin <simon.sapin@exyr.org> | 2020-12-17 00:22:48 +0100 |
| commit | f365de353ad3d48b5e9269ebc373f82d5aeb19d0 (patch) | |
| tree | 553cc71e9a3a448a9ae75bfa4ff8c2b7b7a00371 /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp | |
| parent | b32e6e6ac8921035177256ab6806e6ab0d4b9b94 (diff) | |
| download | rust-f365de353ad3d48b5e9269ebc373f82d5aeb19d0.tar.gz rust-f365de353ad3d48b5e9269ebc373f82d5aeb19d0.zip | |
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
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
