commit | 8867e5d8df700e093229eb72e0fe6dd1f1da51a4 | [log] [tgz] |
---|---|---|
author | Austin Eng <enga@google.com> | Fri Jul 14 18:53:07 2017 -0400 |
committer | Austin Eng <213reeses@gmail.com> | Mon Jul 17 17:16:45 2017 -0400 |
tree | af9d0cf3c56e67af950c3d265fa15be046f2fc99 | |
parent | 0bcf0e8e740a2d973d73f44e7eeb40e234e6094c [diff] [blame] |
Rename Align to AlignPtr
diff --git a/src/common/Math.cpp b/src/common/Math.cpp index 6c542c7..ce4d41a 100644 --- a/src/common/Math.cpp +++ b/src/common/Math.cpp
@@ -56,6 +56,7 @@ } void* AlignVoidPtr(void* ptr, size_t alignment) { + ASSERT(IsPowerOfTwo(alignment)); ASSERT(alignment != 0); return reinterpret_cast<void*>((reinterpret_cast<intptr_t>(ptr) + (alignment - 1)) & ~(alignment - 1)); }