brintos

brintos / llvm-project-archived public Read only

0
0
Text · 913 B · 816e691 Raw
29 lines · c
1//===----------------------------------------------------------------------===//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-exception6//7//===----------------------------------------------------------------------===//8 9#ifndef _FALLBACK_MALLOC_H10#define _FALLBACK_MALLOC_H11 12#include "__cxxabi_config.h"13#include <stddef.h> // for size_t14 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 __cxxabiv127 28#endif29