| Index: src/base/bits.h
|
| diff --git a/src/base/bits.h b/src/base/bits.h
|
| index 2e6527b0548ec54f6640cc629d06c0a729959fe3..1bb3a0f1ca0bc9e1952e38a06a0aadd1b25d31f2 100644
|
| --- a/src/base/bits.h
|
| +++ b/src/base/bits.h
|
| @@ -111,7 +111,6 @@ T ReverseBits(T value) {
|
| return result;
|
| }
|
|
|
| -
|
| // CountTrailingZeros32(value) returns the number of zero bits preceding the
|
| // least significant 1 bit in |value| if |value| is non-zero, otherwise it
|
| // returns 32.
|
| @@ -147,6 +146,14 @@ inline unsigned CountTrailingZeros64(uint64_t value) {
|
| #endif
|
| }
|
|
|
| +// Overloaded versions of CountTrailingZeros32/64.
|
| +inline unsigned CountTrailingZeros(uint32_t value) {
|
| + return CountTrailingZeros32(value);
|
| +}
|
| +
|
| +inline unsigned CountTrailingZeros(uint64_t value) {
|
| + return CountTrailingZeros64(value);
|
| +}
|
|
|
| // Returns true iff |value| is a power of 2.
|
| inline bool IsPowerOfTwo32(uint32_t value) {
|
|
|