blob: 528014b3456d8b0c752defd01bd20547dcac7f3c [file] [log] [blame]
Louis Dionnea63bbc12021-11-17 16:25:01 -05001//===----------------------------------------------------------------------===//
Igor Kudrin11741ce2016-10-07 08:48:28 +00002//
Chandler Carruth8ee27c32019-01-19 10:56:40 +00003// 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
Igor Kudrin11741ce2016-10-07 08:48:28 +00006//
7//===----------------------------------------------------------------------===//
8
9#ifndef _FALLBACK_MALLOC_H
10#define _FALLBACK_MALLOC_H
11
Shoaib Meenaia9921172017-03-01 03:55:57 +000012#include "__cxxabi_config.h"
Louis Dionnef997cb62019-10-01 18:43:02 +000013#include <stddef.h> // for size_t
Igor Kudrin11741ce2016-10-07 08:48:28 +000014
15namespace __cxxabiv1 {
16
Igor Kudrin11741ce2016-10-07 08:48:28 +000017// Allocate some memory from _somewhere_
Eric Fiselierbe1d3492017-03-04 02:04:45 +000018_LIBCXXABI_HIDDEN void * __aligned_malloc_with_fallback(size_t size);
Igor Kudrin11741ce2016-10-07 08:48:28 +000019
Eric Fiselierbe1d3492017-03-04 02:04:45 +000020_LIBCXXABI_HIDDEN void __aligned_free_with_fallback(void *ptr);
Shoaib Meenaia9921172017-03-01 03:55:57 +000021_LIBCXXABI_HIDDEN void __free_with_fallback(void *ptr);
Igor Kudrin11741ce2016-10-07 08:48:28 +000022
23} // namespace __cxxabiv1
24
25#endif