File tree 2 files changed +5
-3
lines changed 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 12
12
namespace entt {
13
13
14
14
/* *
15
- * @brief Checks whether a value is a power of two or not.
15
+ * @brief Checks whether a value is a power of two or not (waiting for C++20 and
16
+ * `std::has_single_bit`).
16
17
* @param value A value that may or may not be a power of two.
17
18
* @return True if the value is a power of two, false otherwise.
18
19
*/
@@ -21,7 +22,8 @@ namespace entt {
21
22
}
22
23
23
24
/* *
24
- * @brief Computes the smallest power of two greater than or equal to a value.
25
+ * @brief Computes the smallest power of two greater than or equal to a value
26
+ * (waiting for C++20 and `std::bit_ceil`).
25
27
* @param value The value to use.
26
28
* @return The smallest power of two greater than or equal to the given value.
27
29
*/
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ namespace entt {
16
16
17
17
namespace internal {
18
18
19
- // waiting for C++20 ( and std::popcount)
19
+ // waiting for C++20 and std::popcount
20
20
template <typename Type>
21
21
constexpr int popcount (Type value) noexcept {
22
22
return value ? (int (value & 1 ) + popcount (value >> 1 )) : 0 ;
You can’t perform that action at this time.
0 commit comments