| Index: src/utils.h
|
| diff --git a/src/utils.h b/src/utils.h
|
| index c86fcba7829c924e7b83a016085febdc2ed08f58..a20e2092612784368bdeae6b39322203bd30dbc5 100644
|
| --- a/src/utils.h
|
| +++ b/src/utils.h
|
| @@ -283,6 +283,12 @@ inline int StrLength(const char* string) {
|
| }
|
|
|
|
|
| +// TODO(svenpanne) Clean up the whole power-of-2 mess.
|
| +inline int32_t WhichPowerOf2Abs(int32_t x) {
|
| + return (x == kMinInt) ? 31 : WhichPowerOf2(Abs(x));
|
| +}
|
| +
|
| +
|
| // ----------------------------------------------------------------------------
|
| // BitField is a help template for encoding and decode bitfield with
|
| // unsigned content.
|
|
|