tmp/tmpp38sx2c7/{from.md → to.md}
RENAMED
|
@@ -38,11 +38,11 @@ template<class T>
|
|
| 38 |
*Returns:* If `x == 0`, `0`; otherwise the maximal value `y` such that
|
| 39 |
`has_single_bit(y)` is `true` and `y <= x`.
|
| 40 |
|
| 41 |
``` cpp
|
| 42 |
template<class T>
|
| 43 |
-
constexpr
|
| 44 |
```
|
| 45 |
|
| 46 |
*Constraints:* `T` is an unsigned integer type [[basic.fundamental]].
|
| 47 |
|
| 48 |
*Returns:* If `x == 0`, `0`; otherwise one plus the base-2 logarithm of
|
|
|
|
| 38 |
*Returns:* If `x == 0`, `0`; otherwise the maximal value `y` such that
|
| 39 |
`has_single_bit(y)` is `true` and `y <= x`.
|
| 40 |
|
| 41 |
``` cpp
|
| 42 |
template<class T>
|
| 43 |
+
constexpr int bit_width(T x) noexcept;
|
| 44 |
```
|
| 45 |
|
| 46 |
*Constraints:* `T` is an unsigned integer type [[basic.fundamental]].
|
| 47 |
|
| 48 |
*Returns:* If `x == 0`, `0`; otherwise one plus the base-2 logarithm of
|