summaryrefslogtreecommitdiffstats
path: root/runtime/vmap_table.h
diff options
context:
space:
mode:
authorVladimir Marko <vmarko@google.com>2014-05-02 11:53:22 +0100
committerVladimir Marko <vmarko@google.com>2014-05-02 12:21:02 +0100
commit8194963098247be6bca9cc4a54dbfa65c73e8ccc (patch)
tree547cc708e06e6541676b17066023ae6f07b2049b /runtime/vmap_table.h
parent56a341a82ece9aa4f2a071629f3e1fd1adf988ae (diff)
downloadandroid_art-8194963098247be6bca9cc4a54dbfa65c73e8ccc.tar.gz
android_art-8194963098247be6bca9cc4a54dbfa65c73e8ccc.tar.bz2
android_art-8194963098247be6bca9cc4a54dbfa65c73e8ccc.zip
Replace CountOneBits and __builtin_popcount with POPCOUNT.
Clean up utils.h, make some functions constexpr. Change-Id: I2399100280cbce81c3c4f5765f0680c1ddcb5883
Diffstat (limited to 'runtime/vmap_table.h')
-rw-r--r--runtime/vmap_table.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/vmap_table.h b/runtime/vmap_table.h
index 2fbaebe0c9..98217535ee 100644
--- a/runtime/vmap_table.h
+++ b/runtime/vmap_table.h
@@ -99,7 +99,7 @@ class VmapTable {
}
matches++;
}
- CHECK_LT(vmap_offset - matches, static_cast<uint32_t>(__builtin_popcount(spill_mask)));
+ CHECK_LT(vmap_offset - matches, static_cast<uint32_t>(POPCOUNT(spill_mask)));
uint32_t spill_shifts = 0;
while (matches != (vmap_offset + 1)) {
DCHECK_NE(spill_mask, 0u);