Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1461)

Unified Diff: third_party/WebKit/Source/wtf/allocator/PartitionAlloc.h

Issue 2512593002: Move wtf/BitwiseOperations.h into base/bits.h. (Closed)
Patch Set: Add a TODO. Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/Source/wtf/DEPS ('k') | third_party/WebKit/Source/wtf/allocator/PartitionAllocTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/wtf/allocator/PartitionAlloc.h
diff --git a/third_party/WebKit/Source/wtf/allocator/PartitionAlloc.h b/third_party/WebKit/Source/wtf/allocator/PartitionAlloc.h
index 2c7d799913e27ed9f960dfb7e42160c366a70176..aa3c0bbc527ebd92a65eecf29dd0b9a32db54f69 100644
--- a/third_party/WebKit/Source/wtf/allocator/PartitionAlloc.h
+++ b/third_party/WebKit/Source/wtf/allocator/PartitionAlloc.h
@@ -799,7 +799,7 @@ ALWAYS_INLINE void partitionFree(void* ptr) {
ALWAYS_INLINE PartitionBucket* partitionGenericSizeToBucket(
PartitionRootGeneric* root,
size_t size) {
- size_t order = kBitsPerSizet - countLeadingZerosSizet(size);
+ size_t order = kBitsPerSizet - CountLeadingZeroBitsSizeT(size);
// The order index is simply the next few bits after the most significant bit.
size_t orderIndex = (size >> root->orderIndexShifts[order]) &
(kGenericNumBucketsPerOrder - 1);
« no previous file with comments | « third_party/WebKit/Source/wtf/DEPS ('k') | third_party/WebKit/Source/wtf/allocator/PartitionAllocTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698