chromium/third_party/skia/include/private/base/SkAlign.h

/*
 * Copyright 2022 Google LLC
 *
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 */

#ifndef SkAlign_DEFINED
#define SkAlign_DEFINED

#include "include/private/base/SkAssert.h"

#include <cstddef>

template <typename T> static constexpr T SkAlign2(T x) {}
template <typename T> static constexpr T SkAlign4(T x) {}
template <typename T> static constexpr T SkAlign8(T x) {}
template <typename T> static constexpr T SkAlign16(T x) {}

template <typename T> static constexpr bool SkIsAlign2(T x) {}
template <typename T> static constexpr bool SkIsAlign4(T x) {}
template <typename T> static constexpr bool SkIsAlign8(T x) {}
template <typename T> static constexpr bool SkIsAlign16(T x) {}


template <typename T> static constexpr T SkAlignPtr(T x) {}
template <typename T> static constexpr bool SkIsAlignPtr(T x) {}

/**
 *  align up to a power of 2
 */
static inline constexpr size_t SkAlignTo(size_t x, size_t alignment) {}

#endif