Commit 33b7c20
committed
Merge #80: Add c++20 version of CountBits
82b6488 Add c++20 version of CountBits (Cory Fields)
Pull request description:
This corresponds with an upcoming pr to Core to do the same.
It's unclear why the optimized versions ignore the max param. I'm guessing it's because the output of the builtins is already capped? I wasn't sure, so I copied the behavior of the other builtins.
ACKs for top commit:
sipa:
ACK 82b6488
Tree-SHA512: 009f84bc67401533f57fd3a2765003d3baebfa87d7b3076ece16bda7e5af3756d082e8af5caf81098b4334a8c1f8c1a3eaa2a9bd21596801377aa58af91d08c91 file changed
+8
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
18 | 20 | | |
19 | 21 | | |
20 | 22 | | |
| |||
142 | 144 | | |
143 | 145 | | |
144 | 146 | | |
145 | | - | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
146 | 152 | | |
147 | 153 | | |
148 | 154 | | |
| |||
0 commit comments