Path: blob/main/system/lib/libcxxabi/src/fallback_malloc.h
6173 views
//===----------------------------------------------------------------------===//1//2// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.3// See https://llvm.org/LICENSE.txt for license information.4// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception5//6//===----------------------------------------------------------------------===//78#ifndef _FALLBACK_MALLOC_H9#define _FALLBACK_MALLOC_H1011#include "__cxxabi_config.h"12#include <stddef.h> // for size_t1314namespace __cxxabiv1 {1516// Allocate some memory from _somewhere_17_LIBCXXABI_HIDDEN void * __aligned_malloc_with_fallback(size_t size);1819// Allocate and zero-initialize memory from _somewhere_20_LIBCXXABI_HIDDEN void * __calloc_with_fallback(size_t count, size_t size);2122_LIBCXXABI_HIDDEN void __aligned_free_with_fallback(void *ptr);23_LIBCXXABI_HIDDEN void __free_with_fallback(void *ptr);2425} // namespace __cxxabiv12627#endif282930