Skip to content

Commit 42529d0

Browse files
committed
doc: minor changes
1 parent 637d6bb commit 42529d0

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/entt/core/memory.hpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
namespace entt {
1313

1414
/**
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`).
1617
* @param value A value that may or may not be a power of two.
1718
* @return True if the value is a power of two, false otherwise.
1819
*/
@@ -21,7 +22,8 @@ namespace entt {
2122
}
2223

2324
/**
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`).
2527
* @param value The value to use.
2628
* @return The smallest power of two greater than or equal to the given value.
2729
*/

src/entt/entity/entity.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ namespace entt {
1616

1717
namespace internal {
1818

19-
// waiting for C++20 (and std::popcount)
19+
// waiting for C++20 and std::popcount
2020
template<typename Type>
2121
constexpr int popcount(Type value) noexcept {
2222
return value ? (int(value & 1) + popcount(value >> 1)) : 0;

0 commit comments

Comments
 (0)