1//
2// Copyright 2017 The ANGLE Project Authors. All rights reserved.
3// Use of this source code is governed by a BSD-style license that can be
4// found in the LICENSE file.
5//
6// aligned_memory: An aligned memory allocator. Based on Chrome's base/memory/aligned_memory.
7//
8
9#ifndef COMMON_ALIGNED_MEMORY_H_
10#define COMMON_ALIGNED_MEMORY_H_
11
12#include <cstddef>
13
14namespace angle
15{
16
17// This can be replaced with std::aligned_malloc when we have C++17.
18void *AlignedAlloc(size_t size, size_t alignment);
19void AlignedFree(void *ptr);
20
21} // namespace angle
22
23#endif // COMMON_ALIGNED_MEMORY_H_
24