| Index: src/base/bits.h
|
| diff --git a/src/base/bits.h b/src/base/bits.h
|
| index 129bf6268c677ae0a562630565508e24f54853a3..04a0300a66542785b177cf60884e44ba52914e23 100644
|
| --- a/src/base/bits.h
|
| +++ b/src/base/bits.h
|
| @@ -17,8 +17,8 @@ namespace v8 {
|
| namespace base {
|
| namespace bits {
|
|
|
| -// CountSetBits32(value) returns the number of bits set in |value|.
|
| -inline uint32_t CountSetBits32(uint32_t value) {
|
| +// CountPopulation32(value) returns the number of bits set in |value|.
|
| +inline uint32_t CountPopulation32(uint32_t value) {
|
| #if V8_HAS_BUILTIN_POPCOUNT
|
| return __builtin_popcount(value);
|
| #else
|
| @@ -47,7 +47,7 @@ inline uint32_t CountLeadingZeros32(uint32_t value) {
|
| value = value | (value >> 4);
|
| value = value | (value >> 8);
|
| value = value | (value >> 16);
|
| - return CountSetBits32(~value);
|
| + return CountPopulation32(~value);
|
| #endif
|
| }
|
|
|
|
|