1eb8650a7SLouis Dionne //===----------------------------------------------------------------------===// 2d9edde4aSIgor Kudrin // 357b08b09SChandler Carruth // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 457b08b09SChandler Carruth // See https://llvm.org/LICENSE.txt for license information. 557b08b09SChandler Carruth // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6d9edde4aSIgor Kudrin // 7d9edde4aSIgor Kudrin //===----------------------------------------------------------------------===// 8d9edde4aSIgor Kudrin 9d9edde4aSIgor Kudrin #ifndef _FALLBACK_MALLOC_H 10d9edde4aSIgor Kudrin #define _FALLBACK_MALLOC_H 11d9edde4aSIgor Kudrin 12fe989a98SShoaib Meenai #include "__cxxabi_config.h" 1304501a22SLouis Dionne #include <stddef.h> // for size_t 14d9edde4aSIgor Kudrin 15d9edde4aSIgor Kudrin namespace __cxxabiv1 { 16d9edde4aSIgor Kudrin 17d9edde4aSIgor Kudrin // Allocate some memory from _somewhere_ 18c74a2e12SEric Fiselier _LIBCXXABI_HIDDEN void * __aligned_malloc_with_fallback(size_t size); 19d9edde4aSIgor Kudrin 20*bc91104eSLouis Dionne // Allocate and zero-initialize memory from _somewhere_ 21*bc91104eSLouis Dionne _LIBCXXABI_HIDDEN void * __calloc_with_fallback(size_t count, size_t size); 22*bc91104eSLouis Dionne 23c74a2e12SEric Fiselier _LIBCXXABI_HIDDEN void __aligned_free_with_fallback(void *ptr); 24fe989a98SShoaib Meenai _LIBCXXABI_HIDDEN void __free_with_fallback(void *ptr); 25d9edde4aSIgor Kudrin 26d9edde4aSIgor Kudrin } // namespace __cxxabiv1 27d9edde4aSIgor Kudrin 28d9edde4aSIgor Kudrin #endif 29