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 14 namespace angle 15 { 16 17 void *AlignedAlloc(size_t size, size_t alignment); 18 void AlignedFree(void *ptr); 19 20 } // namespace angle 21 22 #endif // COMMON_ALIGNED_MEMORY_H_ 23