Skip to content

Commit 45a0fd7

Browse files
committed
fix: invalid typo for pop count macro flag
See definition into CMakeLists.txt:185 Signed-off-by: Maxim Eryomenko <[email protected]>
1 parent 18158b8 commit 45a0fd7

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/core/rps_util.hpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ static inline uint32_t rpsCountBits(uint32_t value)
3232
{
3333
#ifdef RPS_HAS_POPCNT
3434
return __popcnt(value);
35-
#elif RPS_HAS_BUILTIN_POP_COUNT
35+
#elif defined(RPS_HAS_BUILTIN_POPCOUNT)
3636
return (uint32_t)__builtin_popcount(value);
3737
#else
3838
uint32_t a = (value & 0x55555555u) + ((value >> 1u) & 0x55555555u);
@@ -1312,7 +1312,6 @@ namespace rps
13121312
}
13131313

13141314
private:
1315-
13161315
template <typename TFunc, typename TSelf>
13171316
static void IterateRange(TSelf& self, size_t beginIndex, size_t endIndex, TFunc elementHandler)
13181317
{

0 commit comments

Comments
 (0)