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