Remove redundant IsAligned function
{IsAligned} is defined twice with exactly the same signature and implementation: once in base/macros.h, once in utils.h. This CL removes the definition from utils.h. Note that utils.h includes macros.h, so no further changes are needed. R=mlippautz@chromium.org Bug: v8:8238 Change-Id: I589b00c01619d054ff39c717f728a2351b6c32ea Reviewed-on: https://chromium-review.googlesource.com/c/1280206 Commit-Queue: Clemens Hammacher <clemensh@chromium.org> Reviewed-by: Michael Lippautz <mlippautz@chromium.org> Cr-Commit-Position: refs/heads/master@{#56632}
This commit is contained in:
parent
40be7df641
commit
518d91e93d
@ -161,12 +161,6 @@ int HandleObjectPointerCompare(const Handle<T>* a, const Handle<T>* b) {
|
||||
return Compare<T*>(*(*a), *(*b));
|
||||
}
|
||||
|
||||
|
||||
template <typename T, typename U>
|
||||
inline bool IsAligned(T value, U alignment) {
|
||||
return (value & (alignment - 1)) == 0;
|
||||
}
|
||||
|
||||
// Returns the maximum of the two parameters.
|
||||
template <typename T>
|
||||
constexpr T Max(T a, T b) {
|
||||
|
Loading…
Reference in New Issue
Block a user