OSDN Git Service

ART: DCHECK zero case for CLZ/CTZ
authorAndreas Gampe <agampe@google.com>
Fri, 14 Aug 2015 03:55:31 +0000 (20:55 -0700)
committerAndreas Gampe <agampe@google.com>
Fri, 14 Aug 2015 04:29:48 +0000 (21:29 -0700)
commit51db2c217052fd6881b81f3ac5162fe88c36dbf0
tree14d724a828b5ba00889160c2b42095273b7d593c
parent060841a3966afc7a5251134d1f1ef100849b1468
ART: DCHECK zero case for CLZ/CTZ

Add a DCHECK_CONSTEXPR. All current callers have an explicit
zero check before hand and so we should not trip this at the
moment. Remove the TODO.

Add the check for T being unsigned for CLZ (trivial fix for
leb128.h). We use CTZ with signed types.

Change-Id: I7bbf0b1699eed21715c6cc20dbfe22b7da403b1a
runtime/base/bit_utils.h
runtime/leb128.h